Udostępnij za pośrednictwem


ContactFieldFactory.CreateInstantMessage Method

Definition

Overloads

CreateInstantMessage(String)

Creates a field to contain 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 to contain 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 to contain 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 to contain 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:
 virtual ContactInstantMessageField ^ CreateInstantMessage(Platform::String ^ userName) = CreateInstantMessage;
/// [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 for the instant messaging account.

Returns

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

Implements

M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(System.String) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(Platform::String) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(winrt::hstring)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

CreateInstantMessage(String, ContactFieldCategory)

Creates a field to contain 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:
 virtual ContactInstantMessageField ^ CreateInstantMessage(Platform::String ^ userName, ContactFieldCategory category) = CreateInstantMessage;
/// [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

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

Implements

M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(System.String,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(Platform::String,Windows.ApplicationModel.Contacts.ContactFieldCategory) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldCategory)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to

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

Creates a field to contain 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:
 virtual ContactInstantMessageField ^ CreateInstantMessage(Platform::String ^ userName, ContactFieldCategory category, Platform::String ^ service, Platform::String ^ displayText, Uri ^ verb) = CreateInstantMessage;
/// [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 of 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

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

Implements

M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(System.String,Windows.ApplicationModel.Contacts.ContactFieldCategory,System.String,System.String,Windows.Foundation.Uri) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(System.String,Windows.ApplicationModel.Contacts.ContactFieldCategory,System.String,System.String,System.Uri) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(Platform::String,Windows.ApplicationModel.Contacts.ContactFieldCategory,Platform::String,Platform::String,Windows.Foundation.Uri) M:Windows.ApplicationModel.Contacts.IContactInstantMessageFieldFactory.CreateInstantMessage(winrt::hstring,Windows.ApplicationModel.Contacts.ContactFieldCategory,winrt::hstring,winrt::hstring,Windows.Foundation.Uri)
Attributes

Windows requirements

App capabilities
contactsSystem

See also

Applies to