Udostępnij za pośrednictwem


IContactInstantMessageFieldFactory.CreateInstantMessage Method

Definition

Overloads

CreateInstantMessage(String)

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

Note

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

CreateInstantMessage(String, ContactFieldCategory)

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

Note

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

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

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

Note

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

CreateInstantMessage(String)

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

Note

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

public:
 ContactInstantMessageField ^ CreateInstantMessage(Platform::String ^ userName);
/// [Windows.Foundation.Metadata.Overload("CreateInstantMessage_Default")]
ContactInstantMessageField CreateInstantMessage(winrt::hstring const& userName);
[Windows.Foundation.Metadata.Overload("CreateInstantMessage_Default")]
public ContactInstantMessageField CreateInstantMessage(string userName);
function createInstantMessage(userName)
Public Function CreateInstantMessage (userName As String) As ContactInstantMessageField

Parameters

userName
String

Platform::String

winrt::hstring

The user name of the instant messaging account.

Returns

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

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

CreateInstantMessage(String, ContactFieldCategory)

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

Note

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

public:
 ContactInstantMessageField ^ CreateInstantMessage(Platform::String ^ userName, ContactFieldCategory category);
/// [Windows.Foundation.Metadata.Overload("CreateInstantMessage_Category")]
ContactInstantMessageField CreateInstantMessage(winrt::hstring const& userName, ContactFieldCategory const& category);
[Windows.Foundation.Metadata.Overload("CreateInstantMessage_Category")]
public ContactInstantMessageField CreateInstantMessage(string userName, ContactFieldCategory category);
function createInstantMessage(userName, category)
Public Function CreateInstantMessage (userName As String, category As ContactFieldCategory) As ContactInstantMessageField

Parameters

userName
String

Platform::String

winrt::hstring

The user name for the instant messaging account.

category
ContactFieldCategory

The category the field belongs to.

Returns

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

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

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

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

Note

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

public:
 ContactInstantMessageField ^ CreateInstantMessage(Platform::String ^ userName, ContactFieldCategory category, Platform::String ^ service, Platform::String ^ displayText, Uri ^ verb);
/// [Windows.Foundation.Metadata.Overload("CreateInstantMessage_All")]
ContactInstantMessageField CreateInstantMessage(winrt::hstring const& userName, ContactFieldCategory const& category, winrt::hstring const& service, winrt::hstring const& displayText, Uri const& verb);
[Windows.Foundation.Metadata.Overload("CreateInstantMessage_All")]
public ContactInstantMessageField CreateInstantMessage(string userName, ContactFieldCategory category, string service, string displayText, System.Uri verb);
function createInstantMessage(userName, category, service, displayText, verb)
Public Function CreateInstantMessage (userName As String, category As ContactFieldCategory, service As String, displayText As String, verb As Uri) As ContactInstantMessageField

Parameters

userName
String

Platform::String

winrt::hstring

The user name for the instant messaging account.

category
ContactFieldCategory

The category the field belongs to.

service
String

Platform::String

winrt::hstring

The name of the instant messaging service.

displayText
String

Platform::String

winrt::hstring

The text to display to prompt an instant messaging conversation.

verb
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.

Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to