KnownContactField.Location 屬性

定義

包含用於連絡人位置的功能變數名稱。

注意

KnownContactField可能會在Windows 8.1之後變更或無法使用版本。 請改用 ContactAddressContactPhoneContactConnectedServiceAccountContactEmail

public:
 static property Platform::String ^ Location { Platform::String ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static winrt::hstring Location();
/// [get: Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static winrt::hstring Location();
public static string Location { [Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static string Location { [Windows.Foundation.Metadata.Deprecated("IKnownContactFieldStatics may be altered or unavailable for releases after Windows 8.1. Instead, use ContactAddress, ContactPhone, ContactConnectedServiceAccount or ContactEmail.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var string = KnownContactField.location;
Public Shared ReadOnly Property Location As String

屬性值

String

Platform::String

winrt::hstring

欄位的名稱。

屬性

Windows 需求

應用程式功能
contactsSystem

備註

使用此屬性搭配 ContactPicker.DesiredFields 屬性來指定您想要取得連絡人的位置。

適用於