KnownPerceptionFrameSourceProperties.DeviceId 属性

定义

获取一个字符串值,该值标识系统上的设备。

public:
 static property Platform::String ^ DeviceId { Platform::String ^ get(); };
static winrt::hstring DeviceId();
/// [get: Windows.Foundation.Metadata.Deprecated("KnownPerceptionFrameSourceProperties may be unavailable after Windows Creator Update.  Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
static winrt::hstring DeviceId();
public static string DeviceId { get; }
public static string DeviceId { [Windows.Foundation.Metadata.Deprecated("KnownPerceptionFrameSourceProperties may be unavailable after Windows Creator Update.  Please refer to Windows.Media.Capture.Frames APIs on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")] get; }
var string = KnownPerceptionFrameSourceProperties.deviceId;
Public Shared ReadOnly Property DeviceId As String

属性值

String

Platform::String

winrt::hstring

标识符。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)

适用于