ChatMessageBlocking.MarkMessageAsBlockedAsync(String, Boolean) 方法

定义

异步将消息标记为已阻止或取消阻止。

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

参数

localChatMessageId
String

Platform::String

winrt::hstring

要阻止的消息的 ID。

blocked
Boolean

bool

如果应阻止消息,则为 TRUE;如果应取消阻止,则为 FALSE。

返回

指示操作已完成的异步操作。

属性

Windows 要求

应用功能
chat chatSystem smsSend

适用于