Udostępnij za pośrednictwem


ContactAddress Class

Definition

Represents the address of a contact.

public ref class ContactAddress sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactAddress final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ContactAddress final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactAddress
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContactAddress
function ContactAddress()
Public NotInheritable Class ContactAddress
Inheritance
Object Platform::Object IInspectable ContactAddress
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
contactsSystem

Remarks

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

Constructors

ContactAddress()

Initializes a new instance of a ContactAddress class.

Properties

Country

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

Description

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

Kind

Gets or sets the kind of contact address.

Locality

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

PostalCode

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

Region

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

StreetAddress

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

Applies to

See also