Win32_PnPDeviceProperty 类

表示 Win32_PnPEntity::GetDeviceProperties 方法返回的属性的类的基类型。

以下语法从托管对象格式 (MOF) 代码中简化,包括所有继承的属性。

语法

[abstract, UUID("{ee0b76cd-314b-41f1-99d4-d4f3b0421430}"), AMENDMENT]
class Win32_PnPDeviceProperty
{
  string Key;
  string KeyName;
  Uint32 Type;
  string DeviceID;
};

成员

Win32_PnPDeviceProperty 类具有以下类型的成员:

属性

Win32_PnPDeviceProperty 类具有这些属性。

DeviceID

数据类型: string

访问类型:只读

标识 PnP 设备。

Key

数据类型: string

访问类型:只读

标识 Data 属性的 Key Name-Value对的值。

KeyName

数据类型: string

访问类型:只读

标识 Data 属性的 Key Name-Value对的名称。

类型

数据类型: Uint32

访问类型:只读

Data 属性的类型。

可能的值是。

(0)

null (1)

SByte (2)

字节 (3)

Int16 (4)

UInt16 (5)

Int32 (6)

Uint32 (7)

Int64 (8)

UInt64 (9)

Float (10)

(11)

十进制 (12)

Guid (13)

货币 (14)

日期 (15)

FileTime (16)

布尔 (17)

字符串 (18)

SecurityDescriptor (19)

SecurityDescriptorString (20)

DEVPROPKEY (21)

DEVPROPTYPE (22)

错误 (23)

NTStatus (24)

StringIndirect (25)

Reserved

26–4097

SByteArray (4098)

二进制 (4099)

Int16Array (4100)

UInt16Array (4101)

Int64Array (4102)

UInt64Array (4103)

FloatArray (4104)

DoubleArray (4105)

DecimalArray (4106)

GuidArray (4107)

CurrencyArray (4108)

DateArray (4109)

FileTimeArray (4110)

BooleanArray (4111)

StringList (4112)

SecurityDescriptorList (4113)

SecurityDescriptorStringList (8210)

DEVPROPKEYArray (8211)

DEVPROPTYPEArray (8212)

ErrorArray (4117)

NTStatusArray (4118)

StringIndirectList (4119)

未知 - devpropdef.h (4120) 中的检查

TBD (8217)

Reserved

8218–4294967295

要求

要求
最低受支持的客户端
Windows 10 [仅限桌面应用]
最低受支持的服务器
Windows Server 2016
命名空间
Root\CIMV2
MOF
Cimwin32.mof
DLL
CIMWin32.dll

另请参阅

计算机系统硬件类

GetDeviceProperties