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

    Class SecuritiesMessage

    Base class for the object model of all generic SWIFT Securities Markets messages.

    Inheritance
    System.Object
    SecuritiesSequence
    SecuritiesMessage
    SecuritiesClientAdviceOfExecution
    SecuritiesClientConfirmationOfPurchaseOrSale
    SecuritiesStatementOfHoldings
    SecuritiesStatementOfTransactions
    Implements
    ISecuritiesSequence
    Inherited Members
    SecuritiesSequence.AddField(SecuritiesField, Boolean)
    SecuritiesSequence.AddBlock(ISecuritiesSequence, Boolean)
    SecuritiesSequence.AddRepetitiveBlock(ISecuritiesRepetitiveSequence, Boolean)
    SecuritiesSequence.IsEmpty
    SecuritiesSequence.IsValid
    SecuritiesSequence.Clear()
    SecuritiesSequence.StartBlock(String)
    SecuritiesSequence.FinishBlock()
    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)
    System.Object.ToString()
    Namespace: Subsembly.Swift.SecuritiesMarkets
    Assembly: Subsembly.Sepa.dll
    Syntax
    public abstract class SecuritiesMessage : SecuritiesSequence, ISecuritiesSequence
    Remarks

    The base class unifies and simplifies the parsing of generic SWIFT messages. After successfully parsing a SWIFT message, the derived class should hold the parsed content.

    Constructors

    SecuritiesMessage(Int32)

    Declaration
    public SecuritiesMessage(int nMT)
    Parameters
    Type Name Description
    System.Int32 nMT

    The SWIFT message type number.

    Properties

    BlockName

    Declaration
    public override string BlockName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    SecuritiesSequence.BlockName

    MessageType

    Declaration
    public int MessageType { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    CreateMessageData()

    Produces the binary data from this SWIFT message.

    Declaration
    public byte[] CreateMessageData()
    Returns
    Type Description
    System.Byte[]
    Exceptions
    Type Condition
    SwiftException

    DebugTrace()

    Tries to produce the SWIFT Message Text and writes it to the Debug output.

    Declaration
    [Conditional("DEBUG")]
    public void DebugTrace()

    Parse(SwiftReader)

    Declaration
    public void Parse(SwiftReader aReader)
    Parameters
    Type Name Description
    SwiftReader aReader

    ProcessField(SwiftField)

    Invoked during parsing in order to let the derived class process a SWIFT field at the root level. Usually a generic SWIFT message never has fields at the root level, hence the default implementation just throws an UnexpectedField exception.

    Declaration
    public override void ProcessField(SwiftField aField)
    Parameters
    Type Name Description
    SwiftField aField

    The field to process. The field type is either GenericField, or NonGenericField. All other field types are already processed internally by this class.

    Overrides
    SecuritiesSequence.ProcessField(SwiftField)

    Write(SwiftWriter)

    Declaration
    public void Write(SwiftWriter aWriter)
    Parameters
    Type Name Description
    SwiftWriter aWriter
    Exceptions
    Type Condition
    System.ArgumentNullException
    SwiftException

    WriteSequence(SwiftWriter)

    Declaration
    public override void WriteSequence(SwiftWriter aWriter)
    Parameters
    Type Name Description
    SwiftWriter aWriter
    Overrides
    SecuritiesSequence.WriteSequence(SwiftWriter)

    Implements

    ISecuritiesSequence
    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH