ContactAddress ContactAddress ContactAddress ContactAddress Class

Represents the address of a contact.

Syntax

Declaration

public sealed class ContactAddresspublic sealed class ContactAddressPublic NotInheritable Class ContactAddress

Remarks

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

Constructors summary

Initializes a new instance of a ContactAddress class.

Properties summary

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

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

Gets and sets the kind of contact address.

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

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

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

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

Constructors

  • ContactAddress()
    ContactAddress()
    ContactAddress()
    ContactAddress()

    Initializes a new instance of a ContactAddress class.

    public ContactAddress()public ContactAddress()Public Function ContactAddress() As

Properties

  • Country
    Country
    Country
    Country

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

    public string Country { get; set; }public string Country { get; set; }Public ReadWrite Property Country As string

    Property Value

    • string
      string
      string
      string

      The country of a contact address.

  • Description
    Description
    Description
    Description

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

    public string Description { get; set; }public string Description { get; set; }Public ReadWrite Property Description As string

    Property Value

    • string
      string
      string
      string

      The description of a contact address.

  • Kind
    Kind
    Kind
    Kind

    Gets and sets the kind of contact address.

    public ContactAddressKind Kind { get; set; }public ContactAddressKind Kind { get; set; }Public ReadWrite Property Kind As ContactAddressKind

    Property Value

  • Locality
    Locality
    Locality
    Locality

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

    public string Locality { get; set; }public string Locality { get; set; }Public ReadWrite Property Locality As string

    Property Value

    • string
      string
      string
      string

      The locality of a contact address.

  • 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 string PostalCode { get; set; }public string PostalCode { get; set; }Public ReadWrite Property PostalCode As string

    Property Value

    • string
      string
      string
      string

      The postal code of a contact address.

  • Region
    Region
    Region
    Region

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

    public string Region { get; set; }public string Region { get; set; }Public ReadWrite Property Region As string

    Property Value

    • string
      string
      string
      string

      The region of a contact address.

  • 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 string StreetAddress { get; set; }public string StreetAddress { get; set; }Public ReadWrite Property StreetAddress As string

    Property Value

    • string
      string
      string
      string

      The street address of a contact address.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.ApplicationModel.Contacts.dll