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

Class VCardAddressBuilder

Builder for constructing a VCardAddress.

Inheritance
object
VCardAddressBuilder
Inherited Members
object.ToString()
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 VCardAddressBuilder

Methods

View Source

Build()

Builds the VCardAddress.

Declaration
public VCardAddress Build()
Returns
Type Description
VCardAddress
View Source

Country(string?)

Sets the country name.

Declaration
public VCardAddressBuilder Country(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

ExtendedAddress(string?)

Sets the extended address (e.g. apartment number).

Declaration
public VCardAddressBuilder ExtendedAddress(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

Label(string?)

Sets a free-text label for the address.

Declaration
public VCardAddressBuilder Label(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

Locality(string?)

Sets the locality (city).

Declaration
public VCardAddressBuilder Locality(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

PostOfficeBox(string?)

Sets the post office box.

Declaration
public VCardAddressBuilder PostOfficeBox(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

PostalCode(string?)

Sets the postal code (ZIP code).

Declaration
public VCardAddressBuilder PostalCode(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

Preferred(bool)

Marks this address as preferred.

Declaration
public VCardAddressBuilder Preferred(bool preferred = true)
Parameters
Type Name Description
bool preferred

Specifies the preferred value.

Returns
Type Description
VCardAddressBuilder
View Source

Region(string?)

Sets the region (state or province).

Declaration
public VCardAddressBuilder Region(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

Street(string?)

Sets the street address.

Declaration
public VCardAddressBuilder Street(string? value)
Parameters
Type Name Description
string value

The value to process.

Returns
Type Description
VCardAddressBuilder
View Source

Types(params VCardAddressType[])

Adds address types (e.g. Home).

Declaration
public VCardAddressBuilder Types(params VCardAddressType[] types)
Parameters
Type Name Description
VCardAddressType[] types

Specifies the types value.

Returns
Type Description
VCardAddressBuilder
  • View Source
Back to top

DR-IT Software documentation

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

Generated by DocFX