ChatMessageTransport ChatMessageTransport ChatMessageTransport ChatMessageTransport Class

Definition

Represents the identity of a transport for sending and receiving messages. Physically, a chat message transport is a SIM slot on the phone.

public : sealed class ChatMessageTransport : IChatMessageTransport, IChatMessageTransport2public sealed class ChatMessageTransport : IChatMessageTransport, IChatMessageTransport2Public NotInheritable Class ChatMessageTransport Implements IChatMessageTransport, IChatMessageTransport2// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Obtain an instance of this class by calling GetTransportsAsync.

Properties

Configuration Configuration Configuration Configuration

Gets the configuration of the message transport.

public : ChatMessageTransportConfiguration Configuration { get; }public ChatMessageTransportConfiguration Configuration { get; }Public ReadOnly Property Configuration As ChatMessageTransportConfiguration// You can use this property in JavaScript.

IsActive IsActive IsActive IsActive

Gets a Boolean value that indicates whether the messaging transport is active.

public : PlatForm::Boolean IsActive { get; }public bool IsActive { get; }Public ReadOnly Property IsActive As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

A value indicating if the transport is active.

IsAppSetAsNotificationProvider IsAppSetAsNotificationProvider IsAppSetAsNotificationProvider IsAppSetAsNotificationProvider

Gets a Boolean value that indicates whether the current application is set as the messaging notification provider.

public : PlatForm::Boolean IsAppSetAsNotificationProvider { get; }public bool IsAppSetAsNotificationProvider { get; }Public ReadOnly Property IsAppSetAsNotificationProvider As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

A value indicating if the app is set as a notification provider.

Remarks

True if the application is set as the notification provider for the transport, otherwise False.

TransportFriendlyName TransportFriendlyName TransportFriendlyName TransportFriendlyName

Gets a descriptive name identifying the messaging transport.

public : PlatForm::String TransportFriendlyName { get; }public string TransportFriendlyName { get; }Public ReadOnly Property TransportFriendlyName As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The friendly name for the transport.

TransportId TransportId TransportId TransportId

Gets the messaging transport’s identifier.

public : PlatForm::String TransportId { get; }public string TransportId { get; }Public ReadOnly Property TransportId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The ID of the transport.

TransportKind TransportKind TransportKind TransportKind

Gets the type of the message transport.

public : ChatMessageTransportKind TransportKind { get; }public ChatMessageTransportKind TransportKind { get; }Public ReadOnly Property TransportKind As ChatMessageTransportKind// You can use this property in JavaScript.

Methods

RequestSetAsNotificationProviderAsync() RequestSetAsNotificationProviderAsync() RequestSetAsNotificationProviderAsync() RequestSetAsNotificationProviderAsync()

Sets the current application to handle messaging notifications.

public : IAsyncAction RequestSetAsNotificationProviderAsync()public IAsyncAction RequestSetAsNotificationProviderAsync()Public Function RequestSetAsNotificationProviderAsync() As IAsyncAction// You can use this method in JavaScript.
Returns