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

Msvm_MetricDefForME class

· 52CE 我爱测

Defines the association between an Msvm_BaseMetricDefinition and a CIM_ManagedElement to define metrics for the latter. The metrics definition is given context by the ManagedElement, which is why the definition is dependent on the element.

Defines the association between an Msvm_BaseMetricDefinition and a CIM_ManagedElement to define metrics for the latter. The metrics definition is given context by the ManagedElement, which is why the definition is dependent on the element.

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

Syntax

[Association, Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_MetricDefForME : CIM_MetricDefForME
{
  CIM_ManagedElement       REF Antecedent;
  CIM_BaseMetricDefinition REF Dependent;
  uint16                       MetricCollectionEnabled = 2;
};

Members

The Msvm_MetricDefForME class has these types of members:

Properties

The Msvm_MetricDefForME class has these properties.

Antecedent

Data type: CIM_ManagedElement

Access type: Read-only

A reference to an instance of the CIM_ManagedElement class that represents the managed element that can have metrics of the type defined by Dependent applied to it. This property is inherited from CIM_Dependency.

Dependent

Data type: CIM_BaseMetricDefinition

Access type: Read-only

A reference to an instance of the CIM_BaseMetricDefinition class that represents the metric definition that the Antecedent can have applied to it. This property is inherited from CIM_Dependency.

MetricCollectionEnabled

Data type: uint16

Access type: Read-only

Indicates whether the metric defined by Dependent is being collected for the Antecedent. This will be one of the following values.

Value Meaning
Enabled 2 The metric is being collected.
Disabled 3 The metric is not being collected.
Reserved 4
PartiallyEnabled 32768 The metric is being collected for some, but not all, devices.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
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)

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

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