次の方法で共有


SmsDeviceMessageStore.GetMessagesAsync(SmsMessageFilter) メソッド

定義

フィルターで指定された条件に一致するメッセージの一覧を取得します。 メッセージは、開封済み、未読、送信済み、または下書き状態でフィルター処理できます。

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)

パラメーター

messageFilter
SmsMessageFilter

取得するメッセージの ID。

戻り値

非同期操作の開始と追跡に使用される新しいメッセージ操作オブジェクトを返します。

属性

Windows の要件

アプリの機能
cellularMessaging sms

適用対象