PerceptionFrameProviderInfo 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
描述唯一 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
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
備註
屬性如下︰
識別碼 - IPerceptionFrameProvider 的唯一識別碼,例如 GUID 或 「com.contoso.depthcamera.x500.serialNumber1234」。
- 此識別碼必須在重新開機時持續存在。
- 此識別碼在單一制造商的裝置之間必須不同。
- 此識別碼必須大致是唯一的,如此一來,任何一部主機上都沒有任何衝突。
DisplayName - 提供者的易記名稱,例如「Contoso Depth Camera x500」。
DeviceKind - FrameProvider 類別的描述元,例如 「com.contoso.depthcamera.x500」。
FrameKind - 裝置所建立的框架類型。 這必須是下列其中一項:
- KnownPerceptionFrameKind::Color
- KnownPerceptionFrameKind::D epth
- KnownPerceptionFrameKind::Infrared
Hidden - 無論裝置是否透過 FindAllAsync 或裝置在來源監看員上新增事件來列舉。 如果為 false,則只能透過 FromIdAsync 存取裝置。 如果為 false,且裝置已在 FaceAuthenticationGroup 中註冊,則裝置仍會列舉為臉部驗證來源。
建構函式
PerceptionFrameProviderInfo() |
初始化新的 PerceptionFrameProviderInfo 實例。 |
屬性
DeviceKind |
取得或設定 FrameProvider 類別的描述元,例如 「com.contoso.depthcamera.x500」。 |
DisplayName |
取得或設定裝置的易記名稱,例如「Contoso Depth Camera x500」。 |
FrameKind |
取得或設定裝置所建立的框架類型。 |
Hidden |
取得或設定值,指出裝置是否透過來源監看員上的 FindAllAsync 或裝置新增的事件列舉。 |
Id |
取得或設定 IPerceptionFrameProvider 的唯一識別碼。 |