Udostępnij za pośrednictwem


ContactPickerUI.RemoveContact(String) Method

Definition

Removes a contact.

public:
 virtual void RemoveContact(Platform::String ^ id) = RemoveContact;
void RemoveContact(winrt::hstring const& id);
public void RemoveContact(string id);
function removeContact(id)
Public Sub RemoveContact (id As String)

Parameters

id
String

Platform::String

winrt::hstring

The ID of the contact to remove.

Windows requirements

App capabilities
contactsSystem

Remarks

Note

The Contact.Id property must be set when you call RemoveContact. If Contact.Id isn't set, your app won't be able to remove the contact.

Applies to

See also