共用方式為


KnownContactField.InstantMessage 屬性

定義

包含用於立即訊息帳戶的功能變數名稱。

注意

KnownContactField可能會在Windows 8.1之後變更或無法使用。 請改用 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 屬性,指定您想要取得連絡人所使用的立即訊息名稱。

適用於