SmsDeviceMessageStore.DeleteMessagesAsync(SmsMessageFilter) 方法

定义

删除应用筛选器的消息。 筛选器可用于删除所有邮件,或者仅删除已读、未读、已发送或处于草稿状态的邮件。 由于操作可能不是即时的,因此它以异步方式执行。 异步操作对象会立即返回。

public:
 virtual IAsyncAction ^ DeleteMessagesAsync(SmsMessageFilter messageFilter) = DeleteMessagesAsync;
/// [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]
IAsyncAction DeleteMessagesAsync(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")]
IAsyncAction DeleteMessagesAsync(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 IAsyncAction DeleteMessagesAsync(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 IAsyncAction DeleteMessagesAsync(SmsMessageFilter messageFilter);
function deleteMessagesAsync(messageFilter)
Public Function DeleteMessagesAsync (messageFilter As SmsMessageFilter) As IAsyncAction

参数

messageFilter
SmsMessageFilter

指定要删除的邮件的搜索筛选器。

返回

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

属性

Windows 要求

应用功能
cellularMessaging sms

适用于