IContactInstantMessageFieldFactory IContactInstantMessageFieldFactory IContactInstantMessageFieldFactory IContactInstantMessageFieldFactory IContactInstantMessageFieldFactory Interface

Definition

Note

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

Creates fields with information about a contact's instant messaging accounts.

public : interface IContactInstantMessageFieldFactory
struct winrt::Windows::ApplicationModel::Contacts::IContactInstantMessageFieldFactory
public interface IContactInstantMessageFieldFactory
Public Interface IContactInstantMessageFieldFactory
// 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 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Methods

CreateInstantMessage(String) CreateInstantMessage(String) CreateInstantMessage(String) CreateInstantMessage(String) CreateInstantMessage(String)

Note

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.

public : ContactInstantMessageField CreateInstantMessage(Platform::String userName)
ContactInstantMessageField CreateInstantMessage(winrt::hstring userName) const;
public ContactInstantMessageField CreateInstantMessage(String userName)
Public Function CreateInstantMessage(userName As String) As ContactInstantMessageField
var contactInstantMessageField = iContactInstantMessageFieldFactory.createInstantMessage(userName);
Parameters
userName
String String String

The user name of the instant messaging account.

Returns

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

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem
See Also

CreateInstantMessage(String, ContactFieldCategory) CreateInstantMessage(String, ContactFieldCategory) CreateInstantMessage(String, ContactFieldCategory) CreateInstantMessage(String, ContactFieldCategory) CreateInstantMessage(String, ContactFieldCategory)

Note

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.

public : ContactInstantMessageField CreateInstantMessage(Platform::String userName, ContactFieldCategory category)
ContactInstantMessageField CreateInstantMessage(winrt::hstring userName, ContactFieldCategory category) const;
public ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category)
Public Function CreateInstantMessage(userName As String, category As ContactFieldCategory) As ContactInstantMessageField
var contactInstantMessageField = iContactInstantMessageFieldFactory.createInstantMessage(userName, category);
Parameters
userName
String String String

The user name for the instant messaging account.

category
ContactFieldCategory ContactFieldCategory ContactFieldCategory

The category the field belongs to.

Returns

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

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem
See Also

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

Note

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.

public : ContactInstantMessageField CreateInstantMessage(Platform::String userName, ContactFieldCategory category, Platform::String service, Platform::String displayText, Uri verb)
ContactInstantMessageField CreateInstantMessage(winrt::hstring userName, ContactFieldCategory category, winrt::hstring service, winrt::hstring displayText, Uri verb) const;
public ContactInstantMessageField CreateInstantMessage(String userName, ContactFieldCategory category, String service, String displayText, Uri verb)
Public Function CreateInstantMessage(userName As String, category As ContactFieldCategory, service As String, displayText As String, verb As Uri) As ContactInstantMessageField
var contactInstantMessageField = iContactInstantMessageFieldFactory.createInstantMessage(userName, category, service, displayText, verb);
Parameters
userName
String String String

The user name for the instant messaging account.

category
ContactFieldCategory ContactFieldCategory ContactFieldCategory

The category the field belongs to.

service
String String String

The name of the instant messaging service.

displayText
String String String

The text to display to prompt an instant messaging conversation.

verb
Uri Uri Uri

The Uniform Resource Identifier (URI) that starts an instant messaging conversation.

Returns

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

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem
See Also