SmsDeviceMessageStore.GetMessagesAsync(SmsMessageFilter) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索与筛选器中指定的条件匹配的消息列表。 邮件可以筛选为已读、未读、已发送或处于草稿状态。
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
|