SmsDevice.DeviceStatus 属性

定义

返回短信设备的状态,指示设备是否已准备就绪。 它还指示设备未就绪时存在哪种类型的问题。

public:
 property SmsDeviceStatus DeviceStatus { SmsDeviceStatus get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
SmsDeviceStatus DeviceStatus();
/// [get: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
SmsDeviceStatus DeviceStatus();
public SmsDeviceStatus DeviceStatus { [Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))] get; }
public SmsDeviceStatus DeviceStatus { [Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")] get; }
var smsDeviceStatus = smsDevice.deviceStatus;
Public ReadOnly Property DeviceStatus As SmsDeviceStatus

属性值

一个枚举值,指示 SMS 设备是否准备好执行手机网络流量操作。

实现

属性

Windows 要求

应用功能
cellularMessaging sms

适用于