GetSmsDeviceOperation 類別

定義

以非同步方式擷取 SmsDevice 物件。

注意

這項功能僅適用于行動電信業者應用程式和 UWP 應用程式,由行動網路操作員、行動寬頻介面卡 IHV 或 OEM 提供特殊許可權存取。 如需詳細資訊,請參閱 行動寬頻

注意

此類別及其方法支援維護舊版 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 物件擷取作業的識別碼。

Status

指定非同步 SmsDevice 物件擷取作業的狀態。

方法

Cancel()

取消非同步 SmsDevice 物件擷取。

Close()

關閉非同步 SmsDevice 物件擷取作業。

GetResults()

取得非同步 SmsDevice 物件擷取作業的結果。

適用於