Class SepaPostalAddress

Namespace
Subsembly.Sepa
Assembly
Subsembly.Sepa.dll
public class SepaPostalAddress : SepaObject
Inheritance
SepaPostalAddress
Inherited Members

Constructors

SepaPostalAddress(bool)

public SepaPostalAddress(bool fIsMandatory)

Parameters

fIsMandatory bool

Properties

AddressLines

Unstructured address lines.

public string[] AddressLines { get; set; }

Property Value

string[]

Remarks

Each line may contain up to 70 characters. For SEPA at most two address lines may be used.

Exceptions

ArgumentException

An attempt was made to set an array that contained null values, or strings longer than 70 characters.

BuildingName

public string BuildingName { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 35 characters.

BuildingNumber

public string BuildingNumber { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 16 characters.

Country

Two letter ISO country code.

public string Country { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a country code that did not consist of exactly two upper case letters.

CountrySubDivision

public string CountrySubDivision { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 35 characters.

Department

public string Department { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 70 characters.

DistrictName

public string DistrictName { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 35 characters.

Floor

public string Floor { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 70 characters.

IsEmpty

public override bool IsEmpty { get; }

Property Value

bool

PostBox

public string PostBox { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 16 characters.

PostCode

public string PostCode { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 16 characters.

PostCodeAndTownName

Returns a combination of PostCode and TownName.

public string PostCodeAndTownName { get; }

Property Value

string

Remarks

If the TownName is not set, then an attempt is made to return the second line from the AddressLines array as a substitude.

Room

public string Room { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 70 characters.

StreetName

public string StreetName { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 70 characters.

StreetNameAndBuildingNumber

Returns a combination of StreetName and BuildingNumber.

public string StreetNameAndBuildingNumber { get; }

Property Value

string

Remarks

If the StreetName is not set, then an attempt is made to return the first line from the AddressLines array as a substitude.

SubDepartment

public string SubDepartment { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 70 characters.

TownLocationName

public string TownLocationName { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 35 characters.

TownName

public string TownName { get; set; }

Property Value

string

Exceptions

ArgumentException

An attempt was made to set a string with more than 35 characters.

Methods

Clear()

public override void Clear()

OnReadXml(XmlReader, SepaMessageInfo)

protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)

Parameters

aXmlReader XmlReader
aMessageInfo SepaMessageInfo

OnValidate(ICollection<SepaException>, string)

protected override void OnValidate(ICollection<SepaException> vErrors, string sPath)

Parameters

vErrors ICollection<SepaException>
sPath string

OnWriteXml(XmlWriter, SepaMessageInfo)

protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)

Parameters

aXmlWriter XmlWriter
aMessageInfo SepaMessageInfo