大网数据广告活动
Hyper-V与虚拟化

Msvm_ResourceTypeDefinition class

· 52CE 我爱测

Defines a mapping of a resource type to its implementation classes.

Defines a mapping of a resource type to its implementation classes.

The following syntax is simplified Managed Object Format (MOF) code.

Syntax

class Msvm_ResourceTypeDefinition
{
  uint16 ResourceType;
  string OtherResourceType;
  string ResourceSubType;
  string LogicalDeviceClassName;
  string SettingDataClassName;
};

Members

The Msvm_ResourceTypeDefinition class has these types of members:

Properties

The Msvm_ResourceTypeDefinition class has these properties.

LogicalDeviceClassName

Data type: string

Access type: Read-only

The name of the class derived from CIM_LogicalDevice that implements the logical device for this resource type.

OtherResourceType

Data type: string

Access type: Read-only

Qualifiers: Key

A string that describes the resource type when a well-defined value is not available and ResourceType has the value 1 (Other). There is a correspondence with the OtherResourceType property of CIM_ResourceAllocationSettingData.

ResourceSubType

Data type: string

Access type: Read-only

Qualifiers: Key

A string that describes an implementation specific sub-type for this resource. For example, this may be used to distinguish different models of the same resource type. There is a correspondence with the ResourceSubType property of CIM_ResourceAllocationSettingData.

ResourceType

Data type: uint16

Access type: Read-only

Qualifiers: Key

The type of resource this allocation setting represents. There is a correspondence with the ResourceType property of CIM_ResourceAllocationSettingData.

Other (1)

Computer System (2)

Processor (3)

Memory (4)

IDE Controller (5)

Parallel SCSI HBA (6)

FC HBA (7)

iSCSI HBA (8)

IB HCA (9)

Ethernet Adapter (10)

Other Network Adapter (11)

I/O Slot (12)

I/O Device (13)

Floppy Drive (14)

CD Drive (15)

DVD drive (16)

Serial port (17)

Parallel port (18)

USB Controller (19)

Graphics controller (20)

Storage Extent (21)

Disk (22)

Tape (23)

Other storage device (24)

Firewire Controller (25)

Partitionable Unit (26)

Base Partitionable Unit (27)

Power Supply (28)

Cooling Device (29)

DMTF reserved (30 32767)

Vendor Reserved (32768 65535)

SettingDataClassName

Data type: string

Access type: Read-only

The name of the class derived from CIM_ResourceAllocationSettingData that implements the settings for this resource type.

Remarks

Access to the Msvm_ResourceTypeDefinition class might be restricted by UAC Filtering. For more information, see User Account Control and WMI.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
End of client support Windows 8.1
End of server support Windows Server 2012 R2
Namespace Root\Virtualization\V2
MOF WindowsVirtualization.V2.mof
DLL Vmms.exe

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。