PerceptionFrameProviderInfo 类

定义

描述唯一 IPerceptionFrameProvider 的特定属性集。

public ref class PerceptionFrameProviderInfo sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PerceptionFrameProviderInfo final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class PerceptionFrameProviderInfo final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("PerceptionFrameProviderInfo may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
class PerceptionFrameProviderInfo final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PerceptionFrameProviderInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class PerceptionFrameProviderInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("PerceptionFrameProviderInfo may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public sealed class PerceptionFrameProviderInfo
function PerceptionFrameProviderInfo()
Public NotInheritable Class PerceptionFrameProviderInfo
继承
Object Platform::Object IInspectable PerceptionFrameProviderInfo
属性

Windows 要求

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

注解

这些属性为:

Id - IPerceptionFrameProvider 的唯一标识符,例如 GUID 或“com.contoso.depthcamera.x500.serialNumber1234”。

  • 此 ID 必须在重新启动后永久保存。
  • 对于单个制造商,设备之间的此 ID 必须不同。
  • 此 ID 必须大致具有全局唯一性,以便任何一台主机上都不存在冲突。

DisplayName - 提供程序的友好名称,例如“Contoso 深度相机 x500”。

DeviceKind - FrameProvider 类型的描述符,例如“com.contoso.depthcamera.x500”。

FrameKind - 设备创建的帧类型。 这必须是以下项之一:

  • KnownPerceptionFrameKind::Color
  • KnownPerceptionFrameKind::D epth
  • KnownPerceptionFrameKind::Infrared

隐藏 - 设备是否通过 FindAllAsync 枚举,还是设备在源观察程序上添加的事件。 如果为 false,则只能通过 FromIdAsync 访问设备。 如果为 false,并且设备已在 FaceAuthenticationGroup 中注册,则设备仍被枚举为人脸身份验证源。

构造函数

PerceptionFrameProviderInfo()

初始化新的 PerceptionFrameProviderInfo 实例。

属性

DeviceKind

按类别获取或设置 FrameProvider 类型的描述符,例如“com.contoso.depthcamera.x500”。

DisplayName

获取或设置设备的友好名称,例如“Contoso 深度相机 x500”。

FrameKind

获取或设置设备创建的帧的类型。

Hidden

获取或设置一个值,该值指示设备是通过源观察程序上的 FindAllAsync 还是设备添加的事件进行枚举。

Id

获取或设置 IPerceptionFrameProvider 的唯一标识符。

适用于