Condividi tramite


PerceptionColorFrameSource.DeviceId Proprietà

Definizione

Ottiene un valore stringa che identifica il dispositivo nel sistema.

public:
 property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
/// [get: Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
winrt::hstring DeviceId();
public string DeviceId { get; }
public string DeviceId { [Windows.Foundation.Metadata.Deprecated("PerceptionColorFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")] get; }
var string = perceptionColorFrameSource.deviceId;
Public ReadOnly Property DeviceId As String

Valore della proprietà

String

Platform::String

winrt::hstring

Identificatore.

Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v2.0)

Si applica a