Interface ISupaRecord
An abstract name/value container representing a single SUPA data record.
A SUPA record is basically just a name/value string dictionary.
Assembly: Subsembly.Sepa.dll
Syntax
public interface ISupaRecord
Methods
GetBool(string)
Gets the named field value from this record as a boolean value. If the field
does not exist, then false
is returned.
Declaration
bool GetBool(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
Exceptions
GetDate(string)
Attempts to get a date record value. If the requested field does not exist,
then the value Date.MinValue is returned.
Declaration
DateTime GetDate(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
Exceptions
GetDateTime(string)
Attempts to get a date and time record value. If the requested field does not
exist, then the value Date.MinValue is returned.
Declaration
DateTime GetDateTime(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
Exceptions
GetDecimal(string)
Attempts to get a decimal record value. If the requested field does not exist,
then the value Dezimal.Zero is returned.
Declaration
decimal GetDecimal(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
Exceptions
GetNumber(string)
Attempts to get an integer record value. If the requested field does not exist,
then the value zero is returned.
Declaration
int GetNumber(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
GetValue(string)
Gets the named field value from this record as a string. If the field
does not exist, then null
is returned.
Declaration
string GetValue(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
Exceptions
HasValue(string)
Indicates whether the record contains a non-null entry for the given field.
Declaration
bool HasValue(string sName)
Parameters
Type |
Name |
Description |
string |
sName |
|
Returns
Exceptions
SetBool(string, bool)
Sets the named field value from the SUPA formatted boolean value.
Declaration
void SetBool(string sName, bool fValue)
Parameters
Exceptions
SetDate(string, DateTime)
Declaration
void SetDate(string sName, DateTime tDate)
Parameters
Exceptions
SetDateTime(string, DateTime)
Declaration
void SetDateTime(string sName, DateTime tDate)
Parameters
Exceptions
SetDecimal(string, decimal)
Declaration
void SetDecimal(string sName, decimal nValue)
Parameters
Exceptions
SetNumber(string, int)
Declaration
void SetNumber(string sName, int nValue)
Parameters
Type |
Name |
Description |
string |
sName |
|
int |
nValue |
|
Exceptions
SetValue(string, string)
Sets the named field with the string value.
Declaration
void SetValue(string sName, string sValue)
Parameters
Exceptions
See Also