Msvm_ServiceAffectsElement class

Associates a virtual machine instance with the management service that controls its state.

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_ServiceAffectsElement : CIM_ServiceAffectsElement
{
  CIM_ManagedElement REF AffectedElement;
  CIM_Service        REF AffectingElement;
  uint16                 ElementEffects[] = 5;
  string                 OtherElementEffectsDescriptions[];
};

Members

The Msvm_ServiceAffectsElement class has these types of members:

Properties

The Msvm_ServiceAffectsElement class has these properties.

AffectedElement

Data type: CIM_ManagedElement

Access type: Read-only

A reference to the virtual machine. This property is inherited from CIM_ServiceAffectsElement.

AffectingElement

Data type: CIM_Service

Access type: Read-only

A reference to the service that controls the virtual machine. This property is inherited from CIM_ServiceAffectsElement.

ElementEffects

Data type: uint16 array

Access type: Read-only

Specifies the type of control that the association represents. This property is inherited from CIM_ServiceAffectsElement, and it is always set to the following value.

Value Meaning
5
Manages

OtherElementEffectsDescriptions

Data type: string array

Access type: Read-only

The details for the type of association at the corresponding array position in the ElementAffects property array. This information is required if ElementAffects is set to 1 (Other). This property is inherited from CIM_ServiceAffectsElement, and it is always set to Null.

Remarks

Access to the Msvm_ServiceAffectsElement 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]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

CIM_ServiceAffectsElement

CIM_ServiceAffectsElement