• API Overview
  • EBICS API
  • FinTS API
  • XS2A API
  • SEPA API
Search Results for

    Class SwiftBlock

    Represents a single SWIFT Message Block that is part of a SwiftMessage.

    Inheritance
    System.Object
    SwiftBlock
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Subsembly.Swift
    Assembly: Subsembly.Sepa.dll
    Syntax
    public class SwiftBlock

    Constructors

    SwiftBlock()

    Declaration
    public SwiftBlock()

    SwiftBlock(String, String)

    Declaration
    public SwiftBlock(string sTag, string sValue)
    Parameters
    Type Name Description
    System.String sTag
    System.String sValue
    Exceptions
    Type Condition
    System.ArgumentException

    The parameter sTag was not null and also not a pure alpha numeric string.

    Properties

    Tag

    The tag of this SWIFT Message Block.

    Declaration
    public string Tag { get; set; }
    Property Value
    Type Description
    System.String

    This should be one numeric character. However, any string consisting of digits and upper case alphanumeric characters can be used as a Tag.

    Exceptions
    Type Condition
    System.ArgumentException

    An attempt was made to set a value that is not null and also not a pure alpha numeric string.

    Value

    The value of this SWIFT Message Block.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    Read(Stream, Int32)

    Reads a single SWIFT Message Block from an input stream.

    Declaration
    public int Read(Stream aInputStream, int nMaxBytes)
    Parameters
    Type Name Description
    System.IO.Stream aInputStream

    The Stream to read the data from.

    System.Int32 nMaxBytes

    The maximum number of bytes to read from the stream. Use Int32.MaxValue if you do not want to impose any limit. If this is zero, then this method will simply clear this instance.

    Returns
    Type Description
    System.Int32

    Returns the actual number of bytes that have been consumed from the input stream. If the input stream was already at the EOF position when this method was called, then zero is returned. If the parameter nMaxBytes was zero, then this method immediately returns zero, too.

    Exceptions
    Type Condition
    System.ArgumentNullException

    The parameter aInputStream was null.

    System.ArgumentOutOfRangeException

    The parameter nMaxBytes was negative.

    SwiftException

    The input data was not a valid SWIFT Block structure.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH