Share via


ChatMessageBlocking.MarkMessageAsBlockedAsync(String, Boolean) Method

Definition

Asynchronously marks a message as blocked or unblocked.

public:
 static IAsyncAction ^ MarkMessageAsBlockedAsync(Platform::String ^ localChatMessageId, bool blocked);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction MarkMessageAsBlockedAsync(winrt::hstring const& localChatMessageId, bool const& blocked);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction MarkMessageAsBlockedAsync(string localChatMessageId, bool blocked);
function markMessageAsBlockedAsync(localChatMessageId, blocked)
Public Shared Function MarkMessageAsBlockedAsync (localChatMessageId As String, blocked As Boolean) As IAsyncAction

Parameters

localChatMessageId
String

Platform::String

winrt::hstring

The ID of the message to block.

blocked
Boolean

bool

TRUE if the message should be blocked, FALSE if it should be unblocked.

Returns

An async action indicating that the operation has completed.

Attributes

Windows requirements

App capabilities
chat chatSystem smsSend

Applies to