ChatMessageStore.GetMessageBySyncIdAsync(String) 方法

定义

按同步 ID 获取消息。

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

参数

syncId
String

Platform::String

winrt::hstring

消息的同步 ID。

返回

异步操作完成后,将返回 ChatMessage 对象。

属性

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
应用功能
chat chatSystem smsSend

适用于