Class FinSegmentHeader
Internal helper class for SegmentBuffer to access segment header properties.
Inheritance
Inherited Members
Namespace: Subsembly.FinTS
Assembly: Subsembly.FinTS.Core.dll
Syntax
public sealed class FinSegmentHeader
Properties
Number
Returns the segment's number.
Declaration
public string Number { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The returned value might be null
which means that the corresponding GD was empty or not present.
There is also no guarantee that the returned value represents a number/value - it's just the uninterpreted
string value.
RefNo
Returns the segment's reference segment number.
Declaration
public string RefNo { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The returned value might be null
which means that the corresponding GD was empty or not present.
There is also no guarantee that the returned value represents a number/value - it's just the uninterpreted
string value.
Type
Returns the segment's type.
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The returned value might be null
which means that the corresponding GD was empty or not present.
Version
Returns the segment's version.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
The returned value might be null
which means that the corresponding GD was empty or not present.
There is also no guarantee that the returned value represents a number/value - it's just the uninterpreted
string value.
Methods
Scan(Byte[], Int32, Int32)
Scans and extracts all the segment header information.
Declaration
public static FinSegmentHeader Scan(byte[] vbSegmentBytes, int nOffset, int nLength)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | vbSegmentBytes | |
System.Int32 | nOffset | |
System.Int32 | nLength |
Returns
Type | Description |
---|---|
FinSegmentHeader | Returns a parsed SegmentHeader. |
Exceptions
Type | Condition |
---|---|
FinParseException | Is thrown, if
|