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()
Assembly: Subsembly.Sepa.dll
Syntax
public sealed class SwiftStatementOfHoldings : IList, ICollection, IEnumerable
Constructors
SwiftStatementOfHoldings()
Declaration
public SwiftStatementOfHoldings()
Properties
ContinuationIndicator
The "Statement of Holdings" continuation indicator.
Declaration
public SwiftStatementOfHoldingsContinuationIndicator ContinuationIndicator { get; set; }
Property Value
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
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
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
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
Load(TextReader, Int32)
Declaration
public static SwiftStatementOfHoldings Load(TextReader aReader, int nMT)
Parameters
Type |
Name |
Description |
System.IO.TextReader |
aReader |
|
System.Int32 |
nMT |
|
Returns
Load(String, Int32)
Declaration
public static SwiftStatementOfHoldings Load(string sFilename, int nMT)
Parameters
Type |
Name |
Description |
System.String |
sFilename |
|
System.Int32 |
nMT |
|
Returns
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
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
ReadMessage(SwiftStatementOfHoldingsMT535Reader)
Declaration
public bool ReadMessage(SwiftStatementOfHoldingsMT535Reader aReader)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ReadMessage(SwiftStatementOfHoldingsMT571Reader)
Declaration
public bool ReadMessage(SwiftStatementOfHoldingsMT571Reader aReader)
Parameters
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
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