Class FinBanksFile

Namespace
Subsembly.FinTS.Banks
Assembly
Subsembly.FinTS.Core.dll

FinBanksFile is a data structure that contains bank info data. It can load FinBanks.dat files.

public sealed class FinBanksFile
Inheritance
FinBanksFile
Inherited Members

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).

public FinBanksInfo FindBank(string sBankCode)

Parameters

sBankCode string

The german bank code (Bankleitzahl) that uniquely identifies the requested bank. If this is null, an empty string or otherwise invalid, then the search will fail and null is returned.

Returns

FinBanksInfo

If the requested bank is found, then its information record is returned. If no such bank is known, then null is returned.

FindServer(string)

Returns the server information record for the requested bank.

public FinBanksServer FindServer(string sBankCode)

Parameters

sBankCode string

The german bank code (Bankleitzahl) that uniquely identifies the requested bank. If this is null, an empty string or otherwise invalid, then the search will fail and null is returned.

Returns

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 null is returned.

Load(string)

Loads compressed FinBanks.dat file.

public void Load(string sFilename)

Parameters

sFilename string

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

ArgumentNullException

The parameter sFilename was null.

ArgumentException

The parameter sFilename was an empty string.

ApplicationException

The file is not a FinBanks.dat file or is corrupted.

Read(Stream)

Reads compressed FinBanks.dat file from the given stream.

public void Read(Stream aStream)

Parameters

aStream Stream

Exceptions

ArgumentNullException

The parameter was null.

ApplicationException

The file is not a FinBanks.dat file or is corrupted.

SearchBanks(SepaBIC)

public FinBanksInfo[] SearchBanks(SepaBIC tBIC)

Parameters

tBIC SepaBIC

Returns

FinBanksInfo[]

SearchBanks(string, int)

public FinBanksInfo[] SearchBanks(string sSearchText, int nMaxResults)

Parameters

sSearchText string

Text to search for. If this is null or empty, then null will be returned.

nMaxResults int

The maximum number of results to return. If this is zero, then all results will be returned.

Returns

FinBanksInfo[]

Exceptions

ArgumentException

The parameter nMaxResults was a negative value.