MobileBroadbandNetworkRegistrationStateChange.DeviceId 属性

定义

获取与网络注册状态更改关联的设备的唯一标识符。

注意

此功能仅适用于由移动网络运营商授予特权访问权限的移动运营商应用和 UWP 应用。

如果要使用此 API 并将应用发布到 Microsoft Store,则需要获得特殊批准。 有关详细信息,请参阅应用功能声明主题中的受限功能部分。

public:
 property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
public string DeviceId { get; }
var string = mobileBroadbandNetworkRegistrationStateChange.deviceId;
Public ReadOnly Property DeviceId As String

属性值

String

Platform::String

winrt::hstring

与网络注册状态更改通知关联的设备的唯一标识符。

Windows 要求

应用功能
cellularDeviceControl cellularDeviceIdentity

适用于