ContactPhone class

Applies to Windows and Windows Phone

Represents info about the phone for a contact.

Syntax


var contactPhone = new Windows.ApplicationModel.Contacts.ContactPhone();

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The ContactPhone class has these types of members:

Constructors

The ContactPhone class has these constructors.

ConstructorDescription
ContactPhone Initializes a new instance of a ContactPhone class.

 

Properties

The ContactPhone class has these properties.

PropertyAccess typeDescription

Description

Read/writeGets and sets the description of the phone for a contact. The maximum string length for the description is 512 characters.

Kind

Read/writeGets and sets the kind of phone for a contact.

Number

Read/writeGets and sets the phone number of a phone for a contact. The maximum string length for the phone number is 50 characters.

 

Remarks

For info about how to manage contacts, see Managing contact cards (XAML) and Managing contact cards (HTML).

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

See also

Contact manager API sample
Object
Phones

 

 

Show:
© 2014 Microsoft