ContactFieldFactory.CreateInstantMessage(String) | createInstantMessage(String) 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 to contain information about a contact's instant messaging account.

Syntax


var contactInstantMessageField = contactFieldFactory.createInstantMessage(userName);

Parameters

userName

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

The user name for the instant messaging account.

Return value

Type: ContactInstantMessageField

Contains 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

ContactFieldFactory
CreateInstantMessage(String, ContactFieldCategory)
CreateInstantMessage(String, ContactFieldCategory, String, String, Uri)

 

 

Show:
© 2014 Microsoft