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
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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro