KnownContactField.Email 属性

定义

包含用于电子邮件地址的字段的名称。

注意

在Windows 8.1后,KnownContactField 可能会更改或不可用。 请改用 ContactAddressContactPhoneContactConnectedServiceAccountContactEmail

public:
 static property Platform::String ^ Email { 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 Email();
/// [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 Email();
public static string Email { [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 Email { [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.email;
Public Shared ReadOnly Property Email As String

属性值

String

Platform::String

winrt::hstring

字段的名称。

属性

Windows 要求

应用功能
contactsSystem

注解

将此属性与 ContactPicker.DesiredFields 属性一起使用,可指定要获取联系人的电子邮件地址。

适用于