IContactInstantMessageFieldFactory.CreateInstantMessage(String, ContactFieldCategory) method

Applies to Windows and Windows Phone

[IContactInstantMessageFieldFactory may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount. ]

Creates a field containing information about a contact's instant messaging account.

Syntax


ContactInstantMessageField CreateInstantMessage(
  string userName, 
  ContactFieldCategory category
)

Parameters

userName

Type: System.String [.NET] | Platform::String [C++]

The user name for the instant messaging account.

category

Type: ContactFieldCategory

The category the field belongs to.

Return value

Type: ContactInstantMessageField

An instant messaging field that you can add to a Contact object.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

See also

IContactInstantMessageFieldFactory
CreateInstantMessage(String)
CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)

 

 

Show:
© 2014 Microsoft