ContactPickerUI.ContainsContact(String) Method
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.
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.