KnownContactField.InstantMessage 属性

定义

包含用于即时消息帐户的字段的名称。

注意

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

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

属性值

String

Platform::String

winrt::hstring

字段的名称。

属性

Windows 要求

应用功能
contactsSystem

注解

将此属性与 ContactPicker.DesiredFields 属性结合使用,可指定要获取联系人使用的即时消息名称。

适用于