ContactAddress ContactAddress ContactAddress ContactAddress ContactAddress Class

Definition

Represents the address of a contact.

public : sealed class ContactAddress : IContactAddress
struct winrt::Windows::ApplicationModel::Contacts::ContactAddress : IContactAddress
public sealed class ContactAddress : IContactAddress
Public NotInheritable Class ContactAddress Implements IContactAddress
var contactAddress = new contactAddress();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Remarks

For info about how to handle app activation through contact actions, see Quickstart: Handling contact actions and Quickstart: Handling contact actions .

Constructors

ContactAddress() ContactAddress() ContactAddress() ContactAddress() ContactAddress()

Initializes a new instance of a ContactAddress class.

public : ContactAddress()
ContactAddress() const;
public ContactAddress()
Public Sub New()
var contactAddress = new contactAddress();
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Properties

Country Country Country Country Country

Gets and sets the country of a contact address. The maximum string length for the country is 1024 characters.

public : Platform::String Country { get; set; }
winrt::hstring Country(); void Country(winrt::hstring country);
public string Country { get; set; }
Public ReadWrite Property Country As string
var string = contactAddress.country;
contactAddress.country = string;
Value
string string string

The country of a contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Description Description Description Description Description

Gets and sets the description of a contact address. The maximum string length for the description is 512 characters.

public : Platform::String Description { get; set; }
winrt::hstring Description(); void Description(winrt::hstring description);
public string Description { get; set; }
Public ReadWrite Property Description As string
var string = contactAddress.description;
contactAddress.description = string;
Value
string string string

The description of a contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Kind Kind Kind Kind Kind

Gets and sets the kind of contact address.

public : ContactAddressKind Kind { get; set; }
ContactAddressKind Kind(); void Kind(ContactAddressKind kind);
public ContactAddressKind Kind { get; set; }
Public ReadWrite Property Kind As ContactAddressKind
var contactAddressKind = contactAddress.kind;
contactAddress.kind = contactAddressKind;
Value
ContactAddressKind ContactAddressKind ContactAddressKind

A ContactAddressKind -typed value that indicates the type of contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Locality Locality Locality Locality Locality

Gets and sets the locality of a contact address. The maximum string length for the locality is 1024 characters.

public : Platform::String Locality { get; set; }
winrt::hstring Locality(); void Locality(winrt::hstring locality);
public string Locality { get; set; }
Public ReadWrite Property Locality As string
var string = contactAddress.locality;
contactAddress.locality = string;
Value
string string string

The locality of a contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

PostalCode PostalCode PostalCode PostalCode PostalCode

Gets and sets the postal code of a contact address. The maximum string length for the postal code is 1024 characters.

public : Platform::String PostalCode { get; set; }
winrt::hstring PostalCode(); void PostalCode(winrt::hstring postalcode);
public string PostalCode { get; set; }
Public ReadWrite Property PostalCode As string
var string = contactAddress.postalCode;
contactAddress.postalCode = string;
Value
string string string

The postal code of a contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Region Region Region Region Region

Gets and sets the region of a contact address. The maximum string length for the region is 1024 characters.

public : Platform::String Region { get; set; }
winrt::hstring Region(); void Region(winrt::hstring region);
public string Region { get; set; }
Public ReadWrite Property Region As string
var string = contactAddress.region;
contactAddress.region = string;
Value
string string string

The region of a contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

StreetAddress StreetAddress StreetAddress StreetAddress StreetAddress

Gets and sets the street address of a contact address. The maximum string length for the street address is 1024 characters.

public : Platform::String StreetAddress { get; set; }
winrt::hstring StreetAddress(); void StreetAddress(winrt::hstring streetaddress);
public string StreetAddress { get; set; }
Public ReadWrite Property StreetAddress As string
var string = contactAddress.streetAddress;
contactAddress.streetAddress = string;
Value
string string string

The street address of a contact address.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

See Also