ContactPhone ContactPhone ContactPhone ContactPhone Class

Definition

Represents information about the phone for a contact.

public : sealed class ContactPhone : IContactPhone
public sealed class ContactPhone : IContactPhone
Public NotInheritable Class ContactPhone Implements IContactPhone
var contactPhone = new contactPhone();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Remarks

For information about how to manage contacts, see Managing contact cards and Managing contact cards .

Constructors

ContactPhone() ContactPhone() ContactPhone() ContactPhone()

Initializes a new instance of a ContactPhone class.

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

Properties

Description Description Description Description

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

public : Platform::String Description { get; set; }
public string Description { get; set; }
Public ReadWrite Property Description As string
var string = contactPhone.description;
contactPhone.description = string;
Value
Platform::String string string string

The description of the phone for a contact.

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

Gets and sets the kind of phone for a contact.

public : ContactPhoneKind Kind { get; set; }
public ContactPhoneKind Kind { get; set; }
Public ReadWrite Property Kind As ContactPhoneKind
var contactPhoneKind = contactPhone.kind;
contactPhone.kind = contactPhoneKind;
Value
ContactPhoneKind ContactPhoneKind ContactPhoneKind ContactPhoneKind

A ContactPhoneKind -typed value that indicates the kind of phone.

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

Number Number Number Number

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

public : Platform::String Number { get; set; }
public string Number { get; set; }
Public ReadWrite Property Number As string
var string = contactPhone.number;
contactPhone.number = string;
Value
Platform::String string string string

The phone number of a phone for a contact.

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

See Also