GetSmsDeviceOperation クラス

定義

SmsDevice オブジェクトを非同期的に取得します。

注意

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

注意

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

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

Windows の要件

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

プロパティ

Completed

非同期 SmsDevice オブジェクト取得操作が完了したかどうかを指定します。

ErrorCode

非同期 SmsDevice オブジェクト取得操作のエラー コードを指定します

Id

非同期 SmsDevice オブジェクト取得操作の ID を指定します。

Status

非同期 SmsDevice オブジェクト取得操作の状態を指定します。

メソッド

Cancel()

非同期 SmsDevice オブジェクトの取得を取り消します。

Close()

非同期 SmsDevice オブジェクト取得操作を閉じます。

GetResults()

非同期 SmsDevice オブジェクト取得操作の結果を取得します。

適用対象