• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
VCardAddress
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.VCard
Assembly: DRIT.Mail.dll
Syntax
public sealed class VCardAddress

Constructors

View Source

VCardAddress(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 Source

Country

Gets the country name, or null if not specified.

Declaration
public string? Country { get; }
Property Value
Type Description
string
View Source

ExtendedAddress

Gets the extended address (e.g. apartment number), or null if not specified.

Declaration
public string? ExtendedAddress { get; }
Property Value
Type Description
string
View Source

IsPreferred

Gets a value indicating whether this is the preferred address.

Declaration
public bool IsPreferred { get; }
Property Value
Type Description
bool
View Source

Label

Gets a free-text label for the address, or null if not specified.

Declaration
public string? Label { get; }
Property Value
Type Description
string
View Source

Locality

Gets the locality (city), or null if not specified.

Declaration
public string? Locality { get; }
Property Value
Type Description
string
View Source

PostOfficeBox

Gets the post office box, or null if not specified.

Declaration
public string? PostOfficeBox { get; }
Property Value
Type Description
string
View Source

PostalCode

Gets the postal code (ZIP code), or null if not specified.

Declaration
public string? PostalCode { get; }
Property Value
Type Description
string
View Source

Region

Gets the region (state or province), or null if not specified.

Declaration
public string? Region { get; }
Property Value
Type Description
string
View Source

Street

Gets the street address, or null if not specified.

Declaration
public string? Street { get; }
Property Value
Type Description
string
View Source

Types

Gets the address types (e.g. Home, Work).

Declaration
public IReadOnlyList<VCardAddressType> Types { get; }
Property Value
Type Description
IReadOnlyList<VCardAddressType>

Methods

View Source

ToString()

Processes the to string data.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX