ChatMessageStore.GetUnseenCountAsync 方法

定义

重载

GetUnseenCountAsync()

异步获取未读聊天消息数。

GetUnseenCountAsync(IIterable<String>)

使用指定的传输异步获取未读聊天消息的数量。

GetUnseenCountAsync()

异步获取未读聊天消息数。

public:
 virtual IAsyncOperation<int> ^ GetUnseenCountAsync() = GetUnseenCountAsync;
/// [Windows.Foundation.Metadata.Overload("GetUnseenCountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<int> GetUnseenCountAsync();
[Windows.Foundation.Metadata.Overload("GetUnseenCountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<int> GetUnseenCountAsync();
function getUnseenCountAsync()
Public Function GetUnseenCountAsync () As IAsyncOperation(Of Integer)

返回

未读聊天消息数。

属性

Windows 要求

应用功能
chat chatSystem smsSend

另请参阅

适用于

GetUnseenCountAsync(IIterable<String>)

使用指定的传输异步获取未读聊天消息的数量。

public:
 virtual IAsyncOperation<int> ^ GetUnseenCountAsync(IIterable<Platform::String ^> ^ transportIds) = GetUnseenCountAsync;
/// [Windows.Foundation.Metadata.Overload("GetUnseenCountForTransportsReaderAsync")]
IAsyncOperation<int> GetUnseenCountAsync(IIterable<winrt::hstring> const& transportIds);
[Windows.Foundation.Metadata.Overload("GetUnseenCountForTransportsReaderAsync")]
public IAsyncOperation<int> GetUnseenCountAsync(IEnumerable<string> transportIds);
function getUnseenCountAsync(transportIds)
Public Function GetUnseenCountAsync (transportIds As IEnumerable(Of String)) As IAsyncOperation(Of Integer)

参数

transportIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

聊天传输的 ID,用于获取看不见的消息计数。

返回

未读聊天消息数。

属性

Windows 要求

应用功能
chat chatSystem smsSend

另请参阅

适用于