Share via


Contact.Id Property

Definition

Gets or sets the identifier for a contact. The maximum string length for the identifier is 256 characters.

public:
 property Platform::String ^ Id { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Id();

void Id(winrt::hstring value);
public string Id { get; set; }
var string = contact.id;
contact.id = string;
Public Property Id As String

Property Value

String

Platform::String

winrt::hstring

The identifier for a contact. The maximum string length for the identifier is 256 characters.

Windows requirements

App capabilities
contactsSystem

Remarks

Note

The Id property must be set when you call AddContact, ContainsContact, or RemoveContact. If Id isn't set when you call AddContact, your app will fail. If Id isn't set when you call ContainsContact or RemoveContact, your app won't be able to find or remove the contact.

Applies to