DisplayAdapter 类

定义

表示硬件显示控制器。 这通常是 GPU (图形处理单元) 。

public ref class DisplayAdapter sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DisplayAdapter final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DisplayAdapter
Public NotInheritable Class DisplayAdapter
继承
Object Platform::Object IInspectable DisplayAdapter
属性

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

属性

DeviceInterfacePath

获取此适配器的 PnP 设备接口路径。

Id

获取引用显示适配器的运行时实例的 LUID (LUID) 的本地唯一 ID。 如果适配器的 PnP 设备已停止/启动,或者系统重新启动,则此 ID 会更改。

LUID 是一个 64 位值,保证仅在生成它的系统上是唯一的。 只有在适配器的 PnP 设备停止/启动或系统重启之前,才保证 LUID 的唯一性。 此 LUID 与 Direct3DDisplayConfigHolographicSpace API 兼容。

IsIndirectDisplayDevice

表示硬件显示控制器。 这通常是 GPU (图形处理单元) 。

PciDeviceId

获取适配器的 PCI 设备 ID。

PciRevision

获取适配器的 PCI 版本号。

PciSubSystemId

获取适配器的 PCI 子系统 ID。

PciVendorId

获取适配器的 PCI 供应商 ID。

PreferredRenderAdapter

表示硬件显示控制器。 这通常是 GPU (图形处理单元) 。

Properties

获取包含显示适配器属性的集合。

SourceCount

获取 (显示驱动程序公开的硬件源的计数) 数。 这通常是适配器允许的最大同时路径数。

方法

FromId(DisplayAdapterId)

检索给定显示适配器 ID 的 DisplayAdapter (如果该适配器仍然存在于系统上)。 如果找不到指定的适配器,或者系统中不再存在指定适配器,则此方法将引发异常。

适用于