ChatMessageStore.GetMessageAsync(String) Method

Definition

Retrieves a message specified by an identifier from the message store.

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

Parameters

localChatMessageId
String

Platform::String

winrt::hstring

The local ID of the chat message to be retrieved.

Returns

An asynchronous operation that returns a chat message upon successful completion.

Attributes

Windows requirements

App capabilities
chat blockedChatMessages chatSystem smsSend

Remarks

The message corresponding to the specified identifier is returned. An application can use this method to display a message or store messages in its own private cache.

Applies to