Jaa


SmsDeviceMessageStore.GetMessagesAsync(SmsMessageFilter) Method

Definition

Retrieves a list of messages that match the conditions specified in a filter. The messages can be filtered as read, unread, sent, or in the draft state.

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)

Parameters

messageFilter
SmsMessageFilter

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