Freigeben über


ContactLocationField Klasse

Definition

Enthält Informationen zum Speicherort und zur Adresse eines Benutzers.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

public ref class ContactLocationField sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactLocationFieldFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactLocationField final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactLocationFieldFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class ContactLocationField final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactLocationFieldFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ContactLocationField
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactLocationFieldFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContactLocationField
function ContactLocationField(unstructuredAddress, category, street, city, region, country, postalCode)
Public NotInheritable Class ContactLocationField
Vererbung
Object Platform::Object IInspectable ContactLocationField
Attribute
Implementiert

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

Hinweise

Ihre App empfängt eine Auflistung von ContactLocationField-Objekten, wenn ein Kontaktanbieter die angeforderten Kontaktinformationen zurückgibt. Sie können über die ContactInformation.Location-Eigenschaft auf diese Objekte zugreifen.

Konstruktoren

ContactLocationField(String)

Erstellt ein neues ContactLocationField-Objekt.

Hinweis

IContactLocationFieldFactory kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

ContactLocationField(String, ContactFieldCategory)

Erstellt ein neues ContactLocationField-Objekt.

Hinweis

IContactLocationFieldFactory kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

ContactLocationField(String, ContactFieldCategory, String, String, String, String, String)

Erstellt ein neues ContactLocationField-Objekt.

Hinweis

IContactLocationFieldFactory kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Eigenschaften

Category

Ruft die Kategorie für die Kontaktdaten ab.

Hinweis

IContactField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo oder ContactDate.

City

Ruft die Stadt des Kontakts ab.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Country

Ruft das Land des Kontakts ab.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Name

Ruft den Namen des Felds ab.

Hinweis

IContactField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo oder ContactDate.

PostalCode

Ruft die Postleitzahl des Kontakts ab.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Region

Ruft die Region des Kontakts ab.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Street

Ruft die Straße des Kontakts ab.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Type

Ruft den Kontaktfeldtyp für die Daten ab.

Hinweis

IContactField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo oder ContactDate.

UnstructuredAddress

Ruft eine Zeichenfolge ab, die eine unstrukturierte Adresse darstellt.

Hinweis

ContactLocationField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress.

Value

Ruft den Wert der Kontaktdaten ab.

Hinweis

IContactField kann für Releases nach Windows 8.1 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen ContactAddress, ContactPhone, ContactSignificantOther, Contact, ContactEmail, ContactConnectedServiceAccount, ContactWebsite, ContactJobInfo oder ContactDate.

Gilt für: