Class VCardAddress
A delivery address, the value of the ADR property (RFC 6350 §6.3.1,
RFC 2426 §3.2.1). The structured components are separated by semicolons in the
serialized form:
PostOfficeBox;ExtendedAddress;Street;Locality;Region;PostalCode;Country.
Inherited Members
Namespace: DRIT.Mail.Rfc.VCard
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardAddress
Constructors
View SourceVCardAddress(string?, string?, string?, string?, string?, string?, string?, string?, IReadOnlyList<VCardAddressType>, bool)
Initializes a new instance of the VCardAddress class.
Declaration
public VCardAddress(string? postOfficeBox, string? extendedAddress, string? street, string? locality, string? region, string? postalCode, string? country, string? label, IReadOnlyList<VCardAddressType> types, bool isPreferred)
Parameters
| Type | Name | Description |
|---|---|---|
| string | postOfficeBox | |
| string | extendedAddress | |
| string | street | |
| string | locality | |
| string | region | |
| string | postalCode | |
| string | country | |
| string | label | |
| IReadOnlyList<VCardAddressType> | types | |
| bool | isPreferred |
Properties
View SourceCountry
Gets the country name, or null if not specified.
Declaration
public string? Country { get; }
Property Value
| Type | Description |
|---|---|
| string |
ExtendedAddress
Gets the extended address (e.g. apartment number), or null if not specified.
Declaration
public string? ExtendedAddress { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsPreferred
Gets a value indicating whether this is the preferred address.
Declaration
public bool IsPreferred { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Label
Gets a free-text label for the address, or null if not specified.
Declaration
public string? Label { get; }
Property Value
| Type | Description |
|---|---|
| string |
Locality
Gets the locality (city), or null if not specified.
Declaration
public string? Locality { get; }
Property Value
| Type | Description |
|---|---|
| string |
PostOfficeBox
Gets the post office box, or null if not specified.
Declaration
public string? PostOfficeBox { get; }
Property Value
| Type | Description |
|---|---|
| string |
PostalCode
Gets the postal code (ZIP code), or null if not specified.
Declaration
public string? PostalCode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Region
Gets the region (state or province), or null if not specified.
Declaration
public string? Region { get; }
Property Value
| Type | Description |
|---|---|
| string |
Street
Gets the street address, or null if not specified.
Declaration
public string? Street { get; }
Property Value
| Type | Description |
|---|---|
| string |
Types
Declaration
public IReadOnlyList<VCardAddressType> Types { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<VCardAddressType> |
Methods
View SourceToString()
Processes the to string data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |