Contact.Id Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.