ChatMessageStore.GetMessageByRemoteIdAsync(String, String) 方法

定义

按其远程 ID 获取消息。

public:
 virtual IAsyncOperation<ChatMessage ^> ^ GetMessageByRemoteIdAsync(Platform::String ^ transportId, Platform::String ^ remoteId) = GetMessageByRemoteIdAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ChatMessage> GetMessageByRemoteIdAsync(winrt::hstring const& transportId, winrt::hstring const& remoteId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ChatMessage> GetMessageByRemoteIdAsync(string transportId, string remoteId);
function getMessageByRemoteIdAsync(transportId, remoteId)
Public Function GetMessageByRemoteIdAsync (transportId As String, remoteId As String) As IAsyncOperation(Of ChatMessage)

参数

transportId
String

Platform::String

winrt::hstring

用于获取 ChatMessage 的TransportId

remoteId
String

Platform::String

winrt::hstring

要检索的 ChatMessageRemoteId

返回

消息。

属性

Windows 要求

应用功能
chat blockedChatMessages chatSystem smsSend

适用于