SmsDeviceMessageStore.DeleteMessageAsync(UInt32) 方法

定義

刪除具有指定識別碼的訊息。 因為裝置可能忙碌中,所以作業會以非同步方式執行。 非同步作業物件會立即傳回。

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

要刪除之訊息的整數識別碼,先前是從裝置訊息存放區取得的 SmsTextMessage 物件讀取的。

傳回

用來啟動和追蹤非同步作業的新訊息工作物件。

屬性

Windows 需求

應用程式功能
cellularMessaging sms

適用於