ContactInformation クラス

定義

連絡先に関する情報を格納します。

Note

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

public ref class ContactInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class ContactInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class ContactInformation
Public NotInheritable Class ContactInformation
継承
Object Platform::Object IInspectable ContactInformation
属性

Windows の要件

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

注釈

Note

Windows 8.1 以降のアプリでは PickSingleContactAsyncPickMultipleContactsAsync を使用しないため、Windows 8.1以降のアプリでは ContactInformation オブジェクトをインスタンス化しません。次の表は、既存の Windows 8 ContactInformation プロパティと、それに相当する Windows 8.1 Contact プロパティを示しています。

Windows 8 ContactInformation プロパティWindows 8.1 Contact プロパティ
Contact.NameContact.Name
Contact.ThumbnailContact.Thumbnail
Contact.FieldsContact.Emails
ContactField.Value = Address and ContactField.Category = ContactFieldCategory.Home または ContactFieldCategory.Other の Contact.FieldsContact.Addresses
Contact.FieldsContact.Phone
ContactField.ValueContactEmail.Address
ContactField.Category(Home,Work,Other)ContactEmail.Kind(Personal,Work,Other)
ContactField.ValueContactPhone.Number
ContactField.Category(Home, Work, Mobile, Other)ContactPhone.Kind(Home,Work,Mobile,Other)
ContactField.Value = CompanyAddress および ContactField.Category = ContactFieldCategory.WorkContactJobInfo.CompanyAddress

通常は、非同期メソッドまたは関数呼び出しの結果として ContactInformation オブジェクトにアクセスします。 たとえば、 PickSingleContactAsyncPickMultipleContactsAsync の両方の静的メソッドは、選択した連絡先を表す ContactInformation オブジェクトを返します。

アプリが連絡先プロバイダーから連絡先情報を受信すると、各連絡先のデータが ContactInformation オブジェクトに返されます。

プロパティ

CustomFields

連絡先と共に格納されているユーザー設定フィールドの読み取り専用リスト。

Note

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

Emails

連絡先と共に保存された電子メール アドレスの読み取り専用リスト。

Note

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

InstantMessages

連絡先と共に保存されているインスタント メッセージング アカウントの読み取り専用リスト。

Note

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

Locations

連絡先と共に格納されている場所の読み取り専用リスト。

Note

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

Name

連絡先の名前。

Note

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

PhoneNumbers

連絡先と共に格納されている電話番号の読み取り専用リスト。

Note

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

メソッド

GetThumbnailAsync()

連絡先のサムネイル画像を取得します。

Note

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

QueryCustomFields(String)

連絡先と共に格納されているユーザー設定フィールドの値を取得できます。

Note

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

適用対象