ChatMessageManager.RegisterTransportAsync 方法

定义

将应用异步注册为 ChatMessageTransport ,以便将消息发布到 ChatMessageStore

public:
 static IAsyncOperation<Platform::String ^> ^ RegisterTransportAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<winrt::hstring> RegisterTransportAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> RegisterTransportAsync();
function registerTransportAsync()
Public Shared Function RegisterTransportAsync () As IAsyncOperation(Of String)

返回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

新注册的 ChatMessageTransport 的传输 ID。

属性

Windows 要求

应用功能
chat chatSystem smsSend

适用于