VCardAddress Class

A postal address of a vCard (ADR): the post office box, the extended address, the street, the locality, the region, the postal code and the country.

public sealed class VCardAddress

Constructors

NameDescription
VCardAddress()

VCardAddress()

VCardAddress.cs
public VCardAddress()

No documentation is available.

Properties

NameDescription
CountryGets or sets the country.
ExtendedAddressGets or sets the extended address, such as an apartment or a suite.
LocalityGets or sets the locality (the city).
PostOfficeBoxGets or sets the post office box.
PostalCodeGets or sets the postal code.
RegionGets or sets the region (the state or the province).
StreetGets or sets the street.
TypesGets the types, in lower case, such as work, home or pref.

Gets or sets the country.

public string? Country { get; set; }

Property value

string?

ExtendedAddress

VCardAddress.cs

Gets or sets the extended address, such as an apartment or a suite.

public string? ExtendedAddress { get; set; }

Property value

string?

Gets or sets the locality (the city).

public string? Locality { get; set; }

Property value

string?

PostOfficeBox

VCardAddress.cs

Gets or sets the post office box.

public string? PostOfficeBox { get; set; }

Property value

string?

PostalCode

VCardAddress.cs

Gets or sets the postal code.

public string? PostalCode { get; set; }

Property value

string?

Gets or sets the region (the state or the province).

public string? Region { get; set; }

Property value

string?

Gets or sets the street.

public string? Street { get; set; }

Property value

string?

Gets the types, in lower case, such as work, home or pref.

public IList<string> Types { get; }

Property value

IList<string>

Methods

NameDescription
HasType(string)Gets whether the address has a type.
ToString()Returns the parts of the address, separated by commas.

HasType(string)

VCardAddress.cs

Gets whether the address has a type.

public bool HasType(string type)

Parameters

type string
The type, without case.

Returns

bool true when the address has the type.

ToString()

VCardAddress.cs

Returns the parts of the address, separated by commas.

public override string ToString()

Returns

string The address.