ContactInstantMessageField クラス

定義

インスタント メッセージング (IM) アドレスであるフィールドを定義します。

public ref class ContactInstantMessageField sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ContactInstantMessageField 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.IContactInstantMessageFieldFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class ContactInstantMessageField final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory), 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 ContactInstantMessageField
[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.IContactInstantMessageFieldFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ContactInstantMessageField
function ContactInstantMessageField(userName, category, service, displayText, verb)
Public NotInheritable Class ContactInstantMessageField
継承
Object Platform::Object IInspectable ContactInstantMessageField
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)
アプリの機能
contactsSystem

注釈

連絡先プロバイダーが要求された連絡先情報を返すと、アプリは ContactInstantMessageField オブジェクトのコレクションを受け取ります。 これらのオブジェクトには、 ContactInformation.InstantMessages プロパティを使用してアクセスできます。

コンストラクター

ContactInstantMessageField(String)

新しい ContactInstantMessageField オブジェクトを作成します。

注意

IContactInstantMessageFieldFactory は、Windows 8.1後のリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

ContactInstantMessageField(String, ContactFieldCategory)

新しい ContactInstantMessageField オブジェクトを作成します。

注意

IContactInstantMessageFieldFactory は、Windows 8.1後のリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

ContactInstantMessageField(String, ContactFieldCategory, String, String, Uri)

新しい ContactInstantMessageField オブジェクトを作成します。

注意

IContactInstantMessageFieldFactory は、Windows 8.1後のリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

プロパティ

Category

連絡先データのカテゴリを取得します。

注意

IContactField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactAddressContactPhoneContactSignificantOtherContactContactEmailContactConnectedServiceAccountContactWebsiteContactJobInfo、または ContactDate を使用します。

DisplayText

インスタント メッセージを開始する Uniform Resource Identifier (URI) の表示テキストを取得します。

注意

ContactInstantMessageField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

LaunchUri

インスタント メッセージを開始できる Uniform Resource Identifier (URI) を取得します。

注意

ContactInstantMessageField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

Name

フィールドの名前を取得します。

注意

IContactField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactAddressContactPhoneContactSignificantOtherContactContactEmailContactConnectedServiceAccountContactWebsiteContactJobInfo、または ContactDate を使用します。

Service

インスタント メッセージの送信に使用されるサービスの名前を取得します。

注意

ContactInstantMessageField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

Type

データの連絡先フィールドの種類を取得します。

注意

IContactField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactAddressContactPhoneContactSignificantOtherContactContactEmailContactConnectedServiceAccountContactWebsiteContactJobInfo、または ContactDate を使用します。

UserName

ユーザーの名前を取得します。

注意

ContactInstantMessageField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactConnectedServiceAccount を使用します

Value

連絡先データの値を取得します。

注意

IContactField は、Windows 8.1後にリリースで変更または使用できない場合があります。 代わりに、 ContactAddressContactPhoneContactSignificantOtherContactContactEmailContactConnectedServiceAccountContactWebsiteContactJobInfo、または ContactDate を使用します。

適用対象