Contact.Id Contact.Id Contact.Id Contact.Id Contact.Id Property


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


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.

public : Platform::String Id { get; set; }
winrt::hstring Id();

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

Property Value

string string string

The identifier for a contact.

Additional features and requirements