Class FinBanksFile
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
sBankCodestringThe 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 andnullis returned.
Returns
- FinBanksInfo
If the requested bank is found, then its information record is returned. If no such bank is known, then
nullis returned.
FindServer(string)
Returns the server information record for the requested bank.
public FinBanksServer FindServer(string sBankCode)
Parameters
sBankCodestringThe 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 andnullis 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
nullis returned.
Load(string)
Loads compressed FinBanks.dat file.
public void Load(string sFilename)
Parameters
sFilenamestringThe 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
aStreamStream
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
tBICSepaBIC
Returns
SearchBanks(string, int)
public FinBanksInfo[] SearchBanks(string sSearchText, int nMaxResults)
Parameters
sSearchTextstringText to search for. If this is null or empty, then
nullwill be returned.nMaxResultsintThe maximum number of results to return. If this is zero, then all results will be returned.
Returns
Exceptions
- ArgumentException
The parameter
nMaxResultswas a negative value.