GetSmsMessageOperation クラス

定義

SMS メッセージ ストアからのメッセージの取得をサポートします。

注意

この機能は、モバイル ネットワーク オペレーター、モバイル ブロードバンド アダプター IHV、または OEM による特権アクセスが与えられた、モバイル オペレーター アプリと UWP アプリでのみ使用できます。 詳細については、「 モバイル ブロードバンド」を参照してください。

注意

このクラスとそのメソッドは、以前のバージョンの Windows で使用されたレガシ デスクトップ アプリのメンテナンスでサポートされています。 このクラスを使用する場合は、アプリのマニフェストで Windows.Devices.Sms.LegacySmsApiContract を指定する必要があります。 Windows 用の新しいアプリを開発する場合は、このクラスを使用しないでください。 代わりに、 Windows.Devices.Sms.LegacySmsApiContract を必要としないこの名前空間の API を使用してください。

public ref class GetSmsMessageOperation sealed : IAsyncOperation<ISmsMessage ^>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("GetSmsMessageOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
class GetSmsMessageOperation final : IAsyncOperation<ISmsMessage>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("GetSmsMessageOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
class GetSmsMessageOperation final : IAsyncOperation<ISmsMessage>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("GetSmsMessageOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public sealed class GetSmsMessageOperation : IAsyncOperation<ISmsMessage>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("GetSmsMessageOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public sealed class GetSmsMessageOperation : IAsyncOperation<ISmsMessage>
Public NotInheritable Class GetSmsMessageOperation
Implements IAsyncOperation(Of ISmsMessage)
継承
Object Platform::Object IInspectable GetSmsMessageOperation
属性
実装

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.10240.0 で導入)
API contract
Windows.Devices.Sms.LegacySmsApiContract (v1.0 で導入)
アプリの機能
cellularMessaging sms

プロパティ

Completed

非同期 SMS メッセージ取得操作の完了したイベントのハンドラー。

ErrorCode

非同期 SMS メッセージ取得操作のエラー コードを指定します。

Id

非同期 SMS メッセージ取得操作の ID を指定します。

Status

非同期 SMS メッセージ取得操作の状態を指定します。

メソッド

Cancel()

非同期 SMS メッセージ取得操作を取り消します。

Close()

非同期 SMS メッセージ取得操作を閉じます。

GetResults()

非同期 SMS メッセージ取得操作の結果を取得します。

適用対象