SmsDeviceMessageStore.DeleteMessageAsync(UInt32) 方法

定义

删除具有指定 ID 的消息。 由于设备可能正忙,因此操作以异步方式执行。 异步操作对象会立即返回。

public:
 virtual IAsyncAction ^ DeleteMessageAsync(unsigned int messageId) = DeleteMessageAsync;
/// [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 DeleteMessageAsync(uint32_t const& messageId);
/// [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 DeleteMessageAsync(uint32_t const& messageId);
[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 DeleteMessageAsync(uint messageId);
[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 DeleteMessageAsync(uint messageId);
function deleteMessageAsync(messageId)
Public Function DeleteMessageAsync (messageId As UInteger) As IAsyncAction

参数

messageId
UInt32

unsigned int

uint32_t

要删除的消息的整数 ID,以前是从设备消息存储中获取的 SmsTextMessage 对象读取的。

返回

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

属性

Windows 要求

应用功能
cellularMessaging sms

适用于