Share via


ContactRemovedEventArgs.Id Property

Definition

Contains a unique identifier for the contact.

public:
 property Platform::String ^ Id { Platform::String ^ get(); };
winrt::hstring Id();
public string Id { get; }
var string = contactRemovedEventArgs.id;
Public ReadOnly Property Id As String

Property Value

String

Platform::String

winrt::hstring

A unique identifier for the contact.

Windows requirements

App capabilities
contactsSystem

Remarks

When you work with contacts, you must supply an ID property for each contact. The value of this property can be whatever makes the most sense for your app, but it must enable you to uniquely identify each contact. Actions like removing a contact depend on this ID value to ensure that the correct contact is removed. For a complete example, see our code sample.

Applies to