SmsDeviceMessageStore.GetMessageAsync(UInt32) Method

Definition

Retrieves the message with the specified ID. The device might be busy, so the method executes asynchronously. The asynchronous operation object returns immediately.

public:
 virtual IAsyncOperation<ISmsMessage ^> ^ GetMessageAsync(unsigned int messageId) = GetMessageAsync;
/// [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]
IAsyncOperation<ISmsMessage> GetMessageAsync(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")]
IAsyncOperation<ISmsMessage> GetMessageAsync(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 IAsyncOperation<ISmsMessage> GetMessageAsync(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 IAsyncOperation<ISmsMessage> GetMessageAsync(uint messageId);
function getMessageAsync(messageId)
Public Function GetMessageAsync (messageId As UInteger) As IAsyncOperation(Of ISmsMessage)

Parameters

messageId
UInt32

unsigned int

uint32_t

ID of the message to retrieve.

Returns

Returns a new message operation object that is used to start and track the asynchronous operation.

Attributes

Windows requirements

App capabilities
cellularMessaging sms

Applies to