SmsDeviceMessageStore.GetMessagesAsync(SmsMessageFilter) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取符合篩選中指定的條件的訊息清單。 訊息可以篩選為讀取、未讀取、傳送或處於草稿狀態。
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
要擷取之訊息的識別碼。
傳回
傳回用來啟動和追蹤非同步作業的新訊息工作物件。
- 屬性
Windows 需求
應用程式功能 |
cellularMessaging
sms
|