IContactInformation IContactInformation IContactInformation IContactInformation Interface

Definition

Defines the interface for contact information.

public : interface IContactInformation
public interface IContactInformation
Public Interface IContactInformation
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Remarks

For most scenarios you should use the ContactInformation class, which provides the implementation for the IContactInformation API.

Properties

DisplayName DisplayName DisplayName DisplayName

Gets or sets the display name of a contact.

public : Platform::String DisplayName { get; set; }
public string DisplayName { get; set; }
Public ReadWrite Property DisplayName As string
var string = iContactInformation.displayName;
iContactInformation.displayName = string;
Value
Platform::String string string string

The display name of a contact.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

DisplayPicture DisplayPicture DisplayPicture DisplayPicture

Gets the display picture of the contact.

public : IRandomAccessStreamReference DisplayPicture { get; }
public IRandomAccessStreamReference DisplayPicture { get; }
Public ReadOnly Property DisplayPicture As IRandomAccessStreamReference
var iRandomAccessStreamReference = iContactInformation.displayPicture;
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

FamilyName FamilyName FamilyName FamilyName

Gets or sets the family name of a contact.

public : Platform::String FamilyName { get; set; }
public string FamilyName { get; set; }
Public ReadWrite Property FamilyName As string
var string = iContactInformation.familyName;
iContactInformation.familyName = string;
Value
Platform::String string string string

The family name of a contact.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

GivenName GivenName GivenName GivenName

Gets or sets the given name of a contact.

public : Platform::String GivenName { get; set; }
public string GivenName { get; set; }
Public ReadWrite Property GivenName As string
var string = iContactInformation.givenName;
iContactInformation.givenName = string;
Value
Platform::String string string string

The given name of a contact.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

HonorificPrefix HonorificPrefix HonorificPrefix HonorificPrefix

Gets or sets the honorific prefix of a contact.

public : Platform::String HonorificPrefix { get; set; }
public string HonorificPrefix { get; set; }
Public ReadWrite Property HonorificPrefix As string
var string = iContactInformation.honorificPrefix;
iContactInformation.honorificPrefix = string;
Value
Platform::String string string string

The honorific prefix of a contact.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

HonorificSuffix HonorificSuffix HonorificSuffix HonorificSuffix

Gets or sets the honorific suffix of a contact.

public : Platform::String HonorificSuffix { get; set; }
public string HonorificSuffix { get; set; }
Public ReadWrite Property HonorificSuffix As string
var string = iContactInformation.honorificSuffix;
iContactInformation.honorificSuffix = string;
Value
Platform::String string string string

The honorific suffix of a contact.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

Methods

GetDisplayPictureAsync() GetDisplayPictureAsync() GetDisplayPictureAsync() GetDisplayPictureAsync()

Gets the display picture of a contact.

public : IAsyncOperation<IRandomAccessStream> GetDisplayPictureAsync()
public IAsyncOperation<IRandomAccessStream> GetDisplayPictureAsync()
Public Function GetDisplayPictureAsync() As IAsyncOperation( Of IRandomAccessStream )
Windows.Phone.PersonalInformation.IContactInformation.getDisplayPictureAsync().done( /* Your success and error handlers */ );
Returns

A stream containing the image data. If you use Asynchronous programming, the result type is IRandomAccessStream, which is the bitmap data for an image provided as a stream.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

GetPropertiesAsync() GetPropertiesAsync() GetPropertiesAsync() GetPropertiesAsync()

Gets the properties for a contact as an map of name/value pairs.

public : IAsyncOperation<IMap<Platform::String, Platform::Object>> GetPropertiesAsync()
public IAsyncOperation<IDictionary<string, object>> GetPropertiesAsync()
Public Function GetPropertiesAsync() As IAsyncOperation<IDictionary<string, object>>( Of IMap )
Windows.Phone.PersonalInformation.IContactInformation.getPropertiesAsync().done( /* Your success and error handlers */ );
Returns
IAsyncOperation<IMap<Platform::String, Platform::Object>> IAsyncOperation<IDictionary<string, object>> IAsyncOperation<IDictionary<string, object>> IAsyncOperation<IDictionary<string, object>>

When this method completes, it returns a map/dictionary of string name/untyped value pairs.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream) SetDisplayPictureAsync(IInputStream)

Sets the display picture for a contact using an IInputStream object.

public : IAsyncAction SetDisplayPictureAsync(IInputStream stream)
public IAsyncAction SetDisplayPictureAsync(IInputStream stream)
Public Function SetDisplayPictureAsync(stream As IInputStream) As IAsyncAction
Windows.Phone.PersonalInformation.IContactInformation.setDisplayPictureAsync(stream).done( /* Your success and error handlers */ );
Parameters
stream
IInputStream IInputStream IInputStream IInputStream

The stream containing the image data.

Returns

An asynchronous action. If you use Asynchronous programming, the result type is void.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]

ToVcardAsync() ToVcardAsync() ToVcardAsync() ToVcardAsync()

Retrieves a vCard representation of the contact using the vCard version 3.0 format.

public : IAsyncOperation<IRandomAccessStream> ToVcardAsync()
public IAsyncOperation<IRandomAccessStream> ToVcardAsync()
Public Function ToVcardAsync() As IAsyncOperation( Of IRandomAccessStream )
Windows.Phone.PersonalInformation.IContactInformation.toVcardAsync().done( /* Your success and error handlers */ );
Returns

When this method completes, it returns a stream containing the vCard data. If you use Asynchronous programming, the result type is IRandomAccessStream, which is the data.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]
See Also

ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat) ToVcardAsync(VCardFormat)

Retrieves a vCard representation of the contact using the specified vCard format.

public : IAsyncOperation<IRandomAccessStream> ToVcardAsync(VCardFormat format)
public IAsyncOperation<IRandomAccessStream> ToVcardAsync(VCardFormat format)
Public Function ToVcardAsync(format As VCardFormat) As IAsyncOperation( Of IRandomAccessStream )
Windows.Phone.PersonalInformation.IContactInformation.toVcardAsync(format).done( /* Your success and error handlers */ );
Parameters
format
VCardFormat VCardFormat VCardFormat VCardFormat

The format that the returned vCard will use.

Returns

When this method completes, it returns a stream containing the vCard data. If you use Asynchronous programming, the result type is IRandomAccessStream, which is the data.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)
Capabilities
ID_CAP_CONTACTS [Windows Phone]
See Also