IContactInformation 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義連絡資訊的介面。
public interface class IContactInformation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3803521020, 59282, 19127, 177, 91, 242, 224, 120, 102, 77, 234)]
struct IContactInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.Guid(3803521020, 59282, 19127, 177, 91, 242, 224, 120, 102, 77, 234)]
public interface IContactInformation
Public Interface IContactInformation
- 衍生
- 屬性
Windows 需求
裝置系列 |
Windows Mobile Extension SDK (已於 10.0.10240.0 引進)
|
API contract |
Windows.Phone.PhoneContract (已於 v1.0 引進)
|
應用程式功能 |
ID_CAP_CONTACTS [Windows Phone]
|
備註
在大部分情況下,您應該使用 ContactInformation 類別,以提供 IContactInformation API 的實作。
屬性
DisplayName |
取得或設定連絡人的顯示名稱。 |
DisplayPicture |
取得連絡人的顯示圖片。 |
FamilyName |
取得或設定連絡人的系列名稱。 |
GivenName |
取得或設定連絡人的指定名稱。 |
HonorificPrefix |
取得或設定連絡人的接受前置詞。 |
HonorificSuffix |
取得或設定連絡人的接受尾碼。 |
方法
GetDisplayPictureAsync() |
取得連絡人的顯示圖片。 |
GetPropertiesAsync() |
取得連絡人的屬性,做為名稱/值組的對應。 |
SetDisplayPictureAsync(IInputStream) |
使用 IInputStream 物件設定連絡人的顯示圖片。 |
ToVcardAsync() |
使用 vCard 3.0 版格式擷取連絡人的 vCard 標記法。 |
ToVcardAsync(VCardFormat) |
使用指定的 vCard 格式擷取連絡人的 vCard 標記法。 |