Class FinBanksFile
FinBanksFile is a data structure that contains bank info data. It can load FinBanks.dat files.
Inheritance
Inherited Members
Namespace: Subsembly.FinTS.Banks
Assembly: Subsembly.FinTS.Core.dll
Syntax
public sealed class FinBanksFile
Methods
FindBank(String)
Returns the date appropriate bank information record for the requested bank. The algorithm in this method used the current date to decide which record is date appropriate (= valid record for the present).
Declaration
public FinBanksInfo FindBank(string sBankCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | sBankCode | The german bank code (Bankleitzahl) that uniquely identifies the
requested bank. If this is |
Returns
Type | Description |
---|---|
FinBanksInfo | If the requested bank is found, then its information record is
returned. If no such bank is known, then |
FindServer(String)
Returns the server information record for the requested bank.
Declaration
public FinBanksServer FindServer(string sBankCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | sBankCode | The german bank code (Bankleitzahl) that uniquely identifies the requested bank.
If this is |
Returns
Type | Description |
---|---|
FinBanksServer | If the requested bank is found, then its HBCI server record is returned. If the bank does
not support HBCI, or no such bank is known at all, then |
Load(String)
Loads compressed FinBanks.dat file.
Declaration
public void Load(string sFilename)
Parameters
Type | Name | Description |
---|---|---|
System.String | sFilename | The file name and complete path of the "FinBanks.dat" file to be loaded. A FinBanks.dat file can be created with the FinBanks tool, or by te FinBanksFileBuilder. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter sFilename was |
System.ArgumentException | The parameter sFilename was an empty string. |
System.ApplicationException | The file is not a FinBanks.dat file or is corrupted. |
Read(Stream)
Reads compressed FinBanks.dat file from the given stream.
Declaration
public void Read(Stream aStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | aStream |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter was |
System.ApplicationException | The file is not a FinBanks.dat file or is corrupted. |
SearchBanks(SepaBIC)
Declaration
public FinBanksInfo[] SearchBanks(SepaBIC tBIC)
Parameters
Type | Name | Description |
---|---|---|
SepaBIC | tBIC |
Returns
Type | Description |
---|---|
FinBanksInfo[] |
SearchBanks(String, Int32)
Declaration
public FinBanksInfo[] SearchBanks(string sSearchText, int nMaxResults)
Parameters
Type | Name | Description |
---|---|---|
System.String | sSearchText | Text to search for. If this is null or empty, then |
System.Int32 | nMaxResults | The maximum number of results to return. If this is zero, then all results will be returned. |
Returns
Type | Description |
---|---|
FinBanksInfo[] |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The parameter |