Freigeben über


ContactQueryOptions Klasse

Definition

Wird verwendet, um die Abfrageoptionen bei der Suche nach Kontakten anzugeben.

public ref class ContactQueryOptions sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactQueryOptionsFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContactQueryOptions final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactQueryOptionsFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ContactQueryOptions final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactQueryOptionsFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContactQueryOptions
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactQueryOptionsFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContactQueryOptions
function ContactQueryOptions(text, fields)
Public NotInheritable Class ContactQueryOptions
Vererbung
Object Platform::Object IInspectable ContactQueryOptions
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
App-Funktionen
contactsSystem

Konstruktoren

ContactQueryOptions()

Initialisiert eine neue instance der ContactQueryOptions-Klasse.

ContactQueryOptions(String)

Initialisiert eine neue instance der ContactQueryOptions-Klasse.

ContactQueryOptions(String, ContactQuerySearchFields)

Initialisiert eine neue instance der ContactQueryOptions-Klasse.

Eigenschaften

AnnotationListIds

Ruft eine Liste ab, der Sie ContactAnnotationList.Id Werte hinzufügen können, nach denen gesucht werden soll.

ContactListIds

Ruft eine Liste ab, der Sie ContactList.Id Werte hinzufügen können, nach denen gesucht werden soll.

DesiredFields

Ruft die gewünschten Felder ab, die ein Kontakt benötigen muss, um der Abfrage zu entsprechen, oder legt sie fest.

DesiredOperations

Ruft die gewünschten Anmerkungsvorgänge ab, die ein Kontakt benötigt, um der Abfrage zu entsprechen, oder legt diese fest.

IncludeContactsFromHiddenLists

Ruft einen booleschen Wert ab, der angibt, ob die Abfrageergebnisse Kontakte aus Listen enthalten sollen, die nicht in der Benutzeroberfläche angezeigt werden, oder legt diesen fest.

TextSearch

Ruft ein ContactQueryTextSearch-Objekt ab, das für Textsuchen verwendet werden kann.

Gilt für: