Compartilhar via


PerceptionColorFrameSource.DeviceId Propriedade

Definição

Obtém um valor de cadeia de caracteres que identifica o dispositivo no 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

Valor da propriedade

String

Platform::String

winrt::hstring

O identificador.

Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v2.0)

Aplica-se a