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

    Class SwiftStatementOfHoldings

    Repesents and manages SWIFT MT-535 / MT-571 Customer Statement of Holdings messages.

    Inheritance
    System.Object
    SwiftStatementOfHoldings
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    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)
    System.Object.ToString()
    Namespace: Subsembly.Swift
    Assembly: Subsembly.Sepa.dll
    Syntax
    public sealed class SwiftStatementOfHoldings : IList, ICollection, IEnumerable
    Remarks

    The primary purpose of the SwiftStatementOfHoldings class is convenient reading (and later creating, too) of SWIFT MT-535 / MT-571 messages. MT-535: Currently all the constant fields (field 20C "sender's reference", field 23G "function of message", field 22F ("type of the statement"), etc. ) are not validated. MT-571: Currently field 72 ("Additional information on all holdings in the message") will not be parsed and therefore items are not accessible.

    Constructors

    SwiftStatementOfHoldings()

    Declaration
    public SwiftStatementOfHoldings()

    Properties

    ContinuationIndicator

    The "Statement of Holdings" continuation indicator.

    Declaration
    public SwiftStatementOfHoldingsContinuationIndicator ContinuationIndicator { get; set; }
    Property Value
    Type Description
    SwiftStatementOfHoldingsContinuationIndicator

    The continuation indicator is part of field 28 (MT 571) / field 28E (MT 535).

    Item[Int32]

    Direct access to the contained SwiftStatementOfHoldingsFinancialInstrument objects.

    Declaration
    public SwiftStatementOfHoldingsFinancialInstrument this[int nIndex] { get; }
    Parameters
    Type Name Description
    System.Int32 nIndex
    Property Value
    Type Description
    SwiftStatementOfHoldingsFinancialInstrument

    NumberOfFinancialInstruments

    Number of financial instruments embedded within the Statement of Holdings message.

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

    PageNumber

    The "Statement of Holdings" page number.

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

    The page number is a subfield of field 28 (MT 571) / field 28E (MT 535).

    PreparationDate

    The "Statement of Holdings" date when the statement was prepared.

    Declaration
    public SwiftDate PreparationDate { get; set; }
    Property Value
    Type Description
    SwiftDate

    The Preparation Date corresponds with field 30 (MT 571) / field 98a PREP (MT 535). Both fields are optional.

    PreparationTime

    The "Statement of Holdings" time when the statement was prepared.

    Declaration
    public SwiftTime PreparationTime { get; set; }
    Property Value
    Type Description
    SwiftTime

    Is part of field 98C PREP (MT 535). There's no corresponding field in MT 571 messages.

    SecuritiesAccountNumber

    The "Statement of Holdings" safekeeping account's number.

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

    The Securities Account Number corresponds with field 83C (MT 571) / field 97A (MT 535).

    SecuritiesBankCode

    The "Statement of Holdings" safekeeping account's bank code.

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

    The Securities Bank Code corresponds with field 83C (MT 571) / field 97A (MT 535).

    StatementDate

    The "Statement of Holdings" date of the statement.

    Declaration
    public SwiftDate StatementDate { get; set; }
    Property Value
    Type Description
    SwiftDate

    The Date of the Statement corresponds with field 67A (MT 571) / field 98a STAT (MT 535) and is mandatory.

    StatementTime

    The "Statement of Holdings" time of the statement.

    Declaration
    public SwiftTime StatementTime { get; set; }
    Property Value
    Type Description
    SwiftTime

    The Time of the Statement is part of field 98C STATE (MT 535). There's no corresponding field in MT 571.

    TotalValue

    Total value of the portofolio inventories of the message.

    Declaration
    public decimal TotalValue { get; set; }
    Property Value
    Type Description
    System.Decimal

    Corresponds with field 34E (MT 571) / field 19A (MT 535). if TotalValueCurrency equals null, there's no TotalValue available!

    TotalValueCurrency

    Currency of the total value of the portofolio inventories of the message.

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

    Corresponds with field 34E (MT 571) / field 19A (MT 535). If TotalValueCurrency equals null, there's no TotalValue available!

    Methods

    AddFinancialInstrument(SwiftStatementOfHoldingsFinancialInstrument)

    Declaration
    public void AddFinancialInstrument(SwiftStatementOfHoldingsFinancialInstrument aFinancialInstrument)
    Parameters
    Type Name Description
    SwiftStatementOfHoldingsFinancialInstrument aFinancialInstrument

    IsCompleteField19A()

    Declaration
    public bool IsCompleteField19A()
    Returns
    Type Description
    System.Boolean

    IsCompleteField28E()

    Declaration
    public bool IsCompleteField28E()
    Returns
    Type Description
    System.Boolean

    IsCompleteField98a(String, SwiftDate, SwiftTime)

    Declaration
    public static bool IsCompleteField98a(string sQualifier, SwiftDate tDate, SwiftTime tTime)
    Parameters
    Type Name Description
    System.String sQualifier
    SwiftDate tDate
    SwiftTime tTime
    Returns
    Type Description
    System.Boolean

    Load(Stream, Int32)

    Declaration
    public static SwiftStatementOfHoldings Load(Stream aStream, int nMT)
    Parameters
    Type Name Description
    System.IO.Stream aStream
    System.Int32 nMT
    Returns
    Type Description
    SwiftStatementOfHoldings

    Load(TextReader, Int32)

    Declaration
    public static SwiftStatementOfHoldings Load(TextReader aReader, int nMT)
    Parameters
    Type Name Description
    System.IO.TextReader aReader
    System.Int32 nMT
    Returns
    Type Description
    SwiftStatementOfHoldings

    Load(String, Int32)

    Declaration
    public static SwiftStatementOfHoldings Load(string sFilename, int nMT)
    Parameters
    Type Name Description
    System.String sFilename
    System.Int32 nMT
    Returns
    Type Description
    SwiftStatementOfHoldings

    Read(Int32, SwiftReader)

    Reads one or more adjacent SWIFT MT-571/MT-535 messages creating a single new SwiftStatementOfHoldings instance for it.

    Declaration
    public static SwiftStatementOfHoldings Read(int nMT, SwiftReader aReader)
    Parameters
    Type Name Description
    System.Int32 nMT

    Either 535 (for MT-535) or 571 (for MT-571).

    SwiftReader aReader
    Returns
    Type Description
    SwiftStatementOfHoldings

    Read(Int32, SwiftReader, Boolean)

    Reads one or more adjacent SWIFT MT-571/MT-535 messages creating a single new SwiftStatementOfHoldings instance for it.

    Declaration
    public static SwiftStatementOfHoldings Read(int nMT, SwiftReader aReader, bool fAll)
    Parameters
    Type Name Description
    System.Int32 nMT
    SwiftReader aReader
    System.Boolean fAll

    If true, then any directly adjacent SWIFT messages are automatically merged into the new SwiftStatementOfHoldings instance. This is repeated until the end of the input stream is found. If false, then only the first SWIFT message, terminated by a SWIFT End-Of-Text marker, or the end of the stream is read.

    Returns
    Type Description
    SwiftStatementOfHoldings

    ReadMessage(SwiftStatementOfHoldingsMT535Reader)

    Read a MT-535 message.

    Declaration
    public bool ReadMessage(SwiftStatementOfHoldingsMT535Reader aReader)
    Parameters
    Type Name Description
    SwiftStatementOfHoldingsMT535Reader aReader

    The reader that supplies the MT-535 data. Must not be null.

    Returns
    Type Description
    System.Boolean

    ReadMessage(SwiftStatementOfHoldingsMT571Reader)

    Read a MT-571 message.

    Declaration
    public bool ReadMessage(SwiftStatementOfHoldingsMT571Reader aReader)
    Parameters
    Type Name Description
    SwiftStatementOfHoldingsMT571Reader aReader

    The reader that supplies the MT-571 data. Must not be null.

    Returns
    Type Description
    System.Boolean

    SaveMT535(Stream)

    Declaration
    public void SaveMT535(Stream aStream)
    Parameters
    Type Name Description
    System.IO.Stream aStream

    SaveMT535(TextWriter)

    Declaration
    public void SaveMT535(TextWriter aWriter)
    Parameters
    Type Name Description
    System.IO.TextWriter aWriter

    SaveMT535(String)

    Declaration
    public void SaveMT535(string sFilename)
    Parameters
    Type Name Description
    System.String sFilename

    WriteMT535(SwiftWriter, Boolean)

    Declaration
    public void WriteMT535(SwiftWriter aWriter, bool fUpdateTotalValue = false)
    Parameters
    Type Name Description
    SwiftWriter aWriter
    System.Boolean fUpdateTotalValue

    Explicit Interface Implementations

    ICollection.CopyTo(Array, Int32)

    Declaration
    void ICollection.CopyTo(Array vArray, int nIndex)
    Parameters
    Type Name Description
    System.Array vArray
    System.Int32 nIndex

    ICollection.Count

    Declaration
    int ICollection.Count { get; }
    Returns
    Type Description
    System.Int32

    ICollection.IsSynchronized

    Declaration
    bool ICollection.IsSynchronized { get; }
    Returns
    Type Description
    System.Boolean

    ICollection.SyncRoot

    Declaration
    object ICollection.SyncRoot { get; }
    Returns
    Type Description
    System.Object

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    IList.Add(Object)

    Declaration
    int IList.Add(object aObject)
    Parameters
    Type Name Description
    System.Object aObject
    Returns
    Type Description
    System.Int32

    IList.Clear()

    Declaration
    void IList.Clear()

    IList.Contains(Object)

    Declaration
    bool IList.Contains(object aObject)
    Parameters
    Type Name Description
    System.Object aObject
    Returns
    Type Description
    System.Boolean

    IList.IndexOf(Object)

    Declaration
    int IList.IndexOf(object aObject)
    Parameters
    Type Name Description
    System.Object aObject
    Returns
    Type Description
    System.Int32

    IList.Insert(Int32, Object)

    Declaration
    void IList.Insert(int nIndex, object aObject)
    Parameters
    Type Name Description
    System.Int32 nIndex
    System.Object aObject

    IList.IsFixedSize

    Declaration
    bool IList.IsFixedSize { get; }
    Returns
    Type Description
    System.Boolean

    IList.IsReadOnly

    Declaration
    bool IList.IsReadOnly { get; }
    Returns
    Type Description
    System.Boolean

    IList.Item[Int32]

    Declaration
    object IList.this[int nIndex] { get; set; }
    Parameters
    Type Name Description
    System.Int32 nIndex
    Returns
    Type Description
    System.Object

    IList.Remove(Object)

    Declaration
    void IList.Remove(object aObject)
    Parameters
    Type Name Description
    System.Object aObject

    IList.RemoveAt(Int32)

    Declaration
    void IList.RemoveAt(int nIndex)
    Parameters
    Type Name Description
    System.Int32 nIndex

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH