IContactInformation IContactInformation IContactInformation IContactInformation Interface

Defines the interface for contact information.

Syntax

Declaration

public interface IContactInformationpublic interface IContactInformationPublic Interface IContactInformationpublic interface IContactInformation

Remarks

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

Properties summary

Gets or sets the display name of a contact.

Gets the display picture of the contact.

Gets or sets the family name of a contact.

Gets or sets the given name of a contact.

Gets or sets the honorific prefix of a contact.

Gets or sets the honorific suffix of a contact.

Methods summary

Gets the display picture of a contact.

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

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

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

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

Properties

  • DisplayName
    DisplayName
    DisplayName
    DisplayName

    Gets or sets the display name of a contact.

    public string DisplayName { get; set; }public string DisplayName { get; set; }Public ReadWrite Property DisplayName As stringpublic string DisplayName { get; set; }

    Property Value

    • string
      string
      string
      string

      The display name of a contact.

  • DisplayPicture
    DisplayPicture
    DisplayPicture
    DisplayPicture

    Gets the display picture of the contact.

    public IRandomAccessStreamReference DisplayPicture { get; }public IRandomAccessStreamReference DisplayPicture { get; }Public ReadOnly Property DisplayPicture As IRandomAccessStreamReferencepublic IRandomAccessStreamReference DisplayPicture { get; }

    Property Value

  • FamilyName
    FamilyName
    FamilyName
    FamilyName

    Gets or sets the family name of a contact.

    public string FamilyName { get; set; }public string FamilyName { get; set; }Public ReadWrite Property FamilyName As stringpublic string FamilyName { get; set; }

    Property Value

    • string
      string
      string
      string

      The family name of a contact.

  • GivenName
    GivenName
    GivenName
    GivenName

    Gets or sets the given name of a contact.

    public string GivenName { get; set; }public string GivenName { get; set; }Public ReadWrite Property GivenName As stringpublic string GivenName { get; set; }

    Property Value

    • string
      string
      string
      string

      The given name of a contact.

  • HonorificPrefix
    HonorificPrefix
    HonorificPrefix
    HonorificPrefix

    Gets or sets the honorific prefix of a contact.

    public string HonorificPrefix { get; set; }public string HonorificPrefix { get; set; }Public ReadWrite Property HonorificPrefix As stringpublic string HonorificPrefix { get; set; }

    Property Value

    • string
      string
      string
      string

      The honorific prefix of a contact.

  • HonorificSuffix
    HonorificSuffix
    HonorificSuffix
    HonorificSuffix

    Gets or sets the honorific suffix of a contact.

    public string HonorificSuffix { get; set; }public string HonorificSuffix { get; set; }Public ReadWrite Property HonorificSuffix As stringpublic string HonorificSuffix { get; set; }

    Property Value

    • string
      string
      string
      string

      The honorific suffix of a contact.

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 )public IAsyncOperation<IRandomAccessStream> GetDisplayPictureAsync()

    Returns

  • GetPropertiesAsync()
    GetPropertiesAsync()
    GetPropertiesAsync()
    GetPropertiesAsync()

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

    public IAsyncOperation<IMap<string, object>> GetPropertiesAsync()public IAsyncOperation<IMap<string, object>> GetPropertiesAsync()Public Function GetPropertiesAsync() As IAsyncOperation( Of IMapstring, object )public IAsyncOperation<IMap<string, object>> GetPropertiesAsync()

    Returns

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

  • 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 IAsyncActionpublic IAsyncAction SetDisplayPictureAsync(IInputStream stream)

    Parameters

    Returns

  • 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 )public IAsyncOperation<IRandomAccessStream> ToVcardAsync()

    Returns

  • 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 )public IAsyncOperation<IRandomAccessStream> ToVcardAsync(VCardFormat format)

    Parameters

    Returns

Device family

Windows Mobile Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Phone.PhoneContract (introduced v1)

Capabilities

ID_CAP_CONTACTS [Windows Phone]

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Phone.PersonalInformation.dll