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

Msvm_VirtualSystemResourceComponent class

· 52CE 我爱测

Represents a virtual device service of the Microsoft Windows Hyper-V platform.

Represents a virtual device service of the Microsoft Windows Hyper-V platform.

The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.

Syntax

class Msvm_VirtualSystemResourceComponent : Msvm_VirtualizationComponent
{
  string  Name;
  string  CLSID;
  uint32  Context = 1;
  boolean Enabled = True;
  string  AdditionalClassNames[];
  uint16  Type = 1;
  boolean HotAdd = False;
  boolean HotRemove = False;
};

Members

The Msvm_VirtualSystemResourceComponent class has these types of members:

Properties

The Msvm_VirtualSystemResourceComponent class has these properties.

AdditionalClassNames

Data type: string array

Access type: Read-only

An array of strings containing additional non-association classes surfaced by this Msvm_VirtualSystemResourceComponent instance. These classes must derive from neither CIM_LogicalDevice nor CIM_ResourceAllocationSettingData.

CLSID

Data type: string

Access type: Read-only

A GUID that represents the class identifier of the service's COM object. This property is inherited from Msvm_VirtualizationComponent.

Context

Data type: uint32

Access type: Read-only

The context in which the newly created object will run. This value is passed in the dwClsContext parameter to CoCreateInstance. This property is inherited from Msvm_VirtualizationComponent, and it is always set to 1.

Enabled

Data type: boolean

Access type: Read-only

True if this instance is enabled and can be used to complete client requests; otherwise, False. This property is inherited from Msvm_VirtualizationComponent, and it is always set to True.

HotAdd

Data type: boolean

Access type: Read-only

True if this instance can be hot-added to a virtual machine; otherwise, False. The default is False.

HotRemove

Data type: boolean

Access type: Read-only

True if this instance can be hot-removed from a virtual machine; otherwise, False. The default is False.

Name

Data type: string

Access type: Read-only

Qualifiers: Key

A language-neutral string that uniquely identifies the service. The following format is suggested to prevent naming conflicts: "vendor|component|version". For example, this name represents version 1.0 of the Microsoft Emulated Network Port Component: "Microsoft|EmulatedNetworkPortComponent|V1.0". This property is inherited from Msvm_VirtualizationComponent.

Type

Data type: uint16

Access type: Read-only

The relationship of the WMI object that is described here with the virtual device.

Value Meaning
"Not Changeable" 0
"Singleton" 1 Singleton is a top level WMI object that is tied 1:1 with a Virtual Device and can only exist once per virtual machine. This is the default value.
"MultiInstance" 2 MultiInstance is a top level WMI object that can exist multiple times per virtual machine and is tied 1:1 with a Virtual Device.
"Subdevice" 3 Subdevice is a WMI object that has not parent reference but is controlled by only one Virtual Device that can exist only once per virtual machine. The WMI object though can exist multiples times.

Remarks

Access to the Msvm_VirtualSystemResourceComponent 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

See also

Msvm_VirtualizationComponent

Msvm_VirtualizationComponent

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)

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

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