Dela via


ContactPickerUI.ContainsContact(String) Method

Definition

Checks to see whether the contact was already selected by the user.

public:
 virtual bool ContainsContact(Platform::String ^ id) = ContainsContact;
bool ContainsContact(winrt::hstring const& id);
public bool ContainsContact(string id);
function containsContact(id)
Public Function ContainsContact (id As String) As Boolean

Parameters

id
String

Platform::String

winrt::hstring

The ID of the contact.

Returns

Boolean

bool

true if the contact has already been selected; otherwise, false.

Windows requirements

App capabilities
contactsSystem

Remarks

Note

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

Applies to

See also