GetSmsMessagesOperation 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class GetSmsMessagesOperation sealed : IAsyncOperationWithProgress<IVectorView<ISmsMessage ^> ^, int>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("GetSmsMessagesOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
class GetSmsMessagesOperation final : IAsyncOperationWithProgress<IVectorView<ISmsMessage>, int>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("GetSmsMessagesOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
class GetSmsMessagesOperation final : IAsyncOperationWithProgress<IVectorView<ISmsMessage>, int>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("GetSmsMessagesOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
public sealed class GetSmsMessagesOperation : IAsyncOperationWithProgress<IReadOnlyList<ISmsMessage>,int>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("GetSmsMessagesOperation may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public sealed class GetSmsMessagesOperation : IAsyncOperationWithProgress<IReadOnlyList<ISmsMessage>,int>
Public NotInheritable Class GetSmsMessagesOperation
Implements IAsyncOperationWithProgress(Of IReadOnlyList(Of ISmsMessage), Integer)
- 继承
- 属性
- 实现
Windows 要求
| 设备系列 |
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Devices.Sms.LegacySmsApiContract (在 v1.0 中引入)
|
| 应用功能 |
cellularMessaging
sms
|
属性
| Completed |
指定异步消息检索操作是否已完成。 |
| ErrorCode |
指定异步消息操作的错误代码。 |
| Id |
指示异步消息操作的 ID。 |
| Progress |
指定异步消息操作的进度状态。 |
| Status |
指定异步消息操作的状态。 |
方法
| Cancel() |
取消异步操作。 |
| Close() |
关闭异步操作。 |
| GetResults() |
检索异步消息检索操作的结果。 |