SmsDeviceMessageStore.GetMessagesAsync(SmsMessageFilter) 方法

定义

检索与筛选器中指定的条件匹配的消息列表。 邮件可以筛选为已读、未读、已发送或处于草稿状态。

public:
 virtual IAsyncOperationWithProgress<IVectorView<ISmsMessage ^> ^, int> ^ GetMessagesAsync(SmsMessageFilter messageFilter) = GetMessagesAsync;
/// [Windows.Foundation.Metadata.Deprecated("SmsDeviceMessageStore may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<IVectorView<ISmsMessage>, int> GetMessagesAsync(SmsMessageFilter const& messageFilter);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("SmsDeviceMessageStore may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
IAsyncOperationWithProgress<IVectorView<ISmsMessage>, int> GetMessagesAsync(SmsMessageFilter const& messageFilter);
[Windows.Foundation.Metadata.Deprecated("SmsDeviceMessageStore may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<IReadOnlyList<ISmsMessage>,int> GetMessagesAsync(SmsMessageFilter messageFilter);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("SmsDeviceMessageStore may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public IAsyncOperationWithProgress<IReadOnlyList<ISmsMessage>,int> GetMessagesAsync(SmsMessageFilter messageFilter);
function getMessagesAsync(messageFilter)
Public Function GetMessagesAsync (messageFilter As SmsMessageFilter) As IAsyncOperationWithProgress(Of IReadOnlyList(Of ISmsMessage), Integer)

参数

messageFilter
SmsMessageFilter

要检索的消息的 ID。

返回

返回用于启动和跟踪异步操作的新消息操作对象。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于