Dependent - property in ROOT\virtualization\v2 namespace

Dependent in other namespaces

List of classes with Dependent local property in ROOT\virtualization\v2 namespace

propertyClassOrigin
DependentCIM_DependencyCIM_Dependency

List of classes with Dependent derived property in ROOT\virtualization\v2 namespace

propertyClassOrigin
DependentCIM_ActiveConnectionCIM_Dependency
DependentCIM_BasedOnCIM_Dependency
DependentCIM_BindsToCIM_Dependency
DependentCIM_BindsToLANEndpointCIM_Dependency
DependentCIM_ConcreteDependencyCIM_Dependency
DependentCIM_ControlledByCIM_Dependency
DependentCIM_DeviceConnectionCIM_Dependency
DependentCIM_DeviceSAPImplementationCIM_Dependency
DependentCIM_ElementAllocatedFromPoolCIM_Dependency
DependentCIM_ForwardsAmongCIM_Dependency
DependentCIM_HostedAccessPointCIM_Dependency
DependentCIM_HostedDependencyCIM_Dependency
DependentCIM_HostedServiceCIM_Dependency
DependentCIM_LastAppliedSnapshotCIM_Dependency
DependentCIM_MediaPresentCIM_Dependency
DependentCIM_MetricDefForMECIM_Dependency
DependentCIM_MetricForMECIM_Dependency
DependentCIM_MetricInstanceCIM_Dependency
DependentCIM_MostCurrentSnapshotInBranchCIM_Dependency
DependentCIM_PortOnDeviceCIM_Dependency
DependentCIM_ProtocolControllerForDeviceCIM_Dependency
DependentCIM_ProtocolControllerForUnitCIM_Dependency
DependentCIM_ResourceAllocationFromPoolCIM_Dependency
DependentCIM_SAPSAPDependencyCIM_Dependency
DependentCIM_ServiceSAPDependencyCIM_Dependency
DependentCIM_SnapshotOfVirtualSystemCIM_Dependency
DependentCIM_SwitchesAmongCIM_Dependency
DependentCIM_SwitchPortDynamicForwardingCIM_Dependency
DependentCIM_TransparentBridgingDynamicForwardingCIM_Dependency
DependentCIM_VideoHeadOnControllerCIM_Dependency
DependentMsvm_ActiveConnectionCIM_Dependency
DependentMsvm_BasedOnCIM_Dependency
DependentMsvm_BindsToLANEndpointCIM_Dependency
DependentMsvm_ConcreteDependencyCIM_Dependency
DependentMsvm_ControlledByCIM_Dependency
DependentMsvm_DeviceSAPImplementationCIM_Dependency
DependentMsvm_ElementAllocatedFromNumaNodeCIM_Dependency
DependentMsvm_ElementAllocatedFromPoolCIM_Dependency
DependentMsvm_EthernetDeviceSAPImplementationCIM_Dependency
DependentMsvm_EthernetPortInfoCIM_Dependency
DependentMsvm_EthernetSwitchInfoCIM_Dependency
DependentMsvm_FcActiveConnectionCIM_Dependency
DependentMsvm_FcDeviceSAPImplementationCIM_Dependency
DependentMsvm_HostedDependencyCIM_Dependency
DependentMsvm_HostedEthernetSwitchExtensionCIM_Dependency
DependentMsvm_HostedServiceCIM_Dependency
DependentMsvm_HostedSwitchServiceCIM_Dependency
DependentMsvm_LastAppliedSnapshotCIM_Dependency
DependentMsvm_MediaPresentCIM_Dependency
DependentMsvm_MetricCollectionDependencyCIM_Dependency
DependentMsvm_MetricDefForMECIM_Dependency
DependentMsvm_MetricForMECIM_Dependency
DependentMsvm_MetricInstanceCIM_Dependency
DependentMsvm_MostCurrentSnapshotInBranchCIM_Dependency
DependentMsvm_ParentChildSettingDataCIM_Dependency
DependentMsvm_ParentEthernetSwitchExtensionCIM_Dependency
DependentMsvm_ProtocolControllerForUnitCIM_Dependency
DependentMsvm_RegisteredGuestServiceCIM_Dependency
DependentMsvm_ReplicaSystemDependencyCIM_Dependency
DependentMsvm_ResourceAllocationFromPoolCIM_Dependency
DependentMsvm_SerialPortOnSerialControllerCIM_Dependency
DependentMsvm_SnapshotOfVirtualSystemCIM_Dependency
DependentMsvm_SwitchPortDynamicForwardingCIM_Dependency
DependentMsvm_SystemReplicationRelationshipCIM_Dependency
DependentMsvm_SystemTerminalConnectionCIM_Dependency
DependentMsvm_TransparentBridgingDynamicForwardingCIM_Dependency
DependentMsvm_VideoHeadOnControllerCIM_Dependency
DependentMsvm_WiFiDeviceSAPImplementationCIM_Dependency

Code samples for Dependent property

Get instance of WMI class using GetObject, Dependent property of Msvm_MetricDefForME

Short VBS code - get a single specified instance of Msvm_MetricDefForME class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\virtualization\v2:" + _
 "Msvm_MetricDefForME.Antecedent=""\\\\.\\root\\virtualization\\v2:Msvm_ProcessorSettingData.InstanceID=\""Microsoft:3962E726-8A63-40BF-B283-45D72BFE89AA\\\\B637F346-6A0E-4DEC-AF52-BD70CB80A21D\\\\0\"""",Dependent=""\\\\.\\root\\virtualization\\v2:Msvm_AggregationMetricDefinition.Id=\""Microsoft:3F6F1051-C8FC-47EF-9821-C07240848748\""""")
Wscript.Echo wmiObject.Dependent 'or other property name, see properties
See more VBS samples of Msvm_MetricDefForME class

WMI query - sample windows WQL with C#, Dependent property of Msvm_MetricDefForME

Get a specified instance of Msvm_MetricDefForME by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\virtualization\\v2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Msvm_MetricDefForME Where Antecedent=\"\\\\\\\\W2012SDC\\\\root\\\\virtualization\\\\v2:Msvm_ProcessorSettingData.InstanceID=\\\"Microsoft:3962E726-8A63-40BF-B283-45D72BFE89AA\\\\\\\\B637F346-6A0E-4DEC-AF52-BD70CB80A21D\\\\\\\\0\\\"\"Dependent=\"\\\\\\\\W2012SDC\\\\root\\\\virtualization\\\\v2:Msvm_AggregationMetricDefinition.Id=\\\"Microsoft:3F6F1051-C8FC-47EF-9821-C07240848748\\\"\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("Dependent : {0}", m["Dependent"]);
  
}

WMI query - sample windows WQL with VB.Net, Dependent property of Msvm_MetricDefForME

Get a specified instance of Msvm_MetricDefForME by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\virtualization\v2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Msvm_MetricDefForME Where Antecedent="\\\\W2012SDC\\root\\virtualization\\v2:Msvm_ProcessorSettingData.InstanceID=\"Microsoft:3962E726-8A63-40BF-B283-45D72BFE89AA\\\\B637F346-6A0E-4DEC-AF52-BD70CB80A21D\\\\0\""Dependent="\\\\W2012SDC\\root\\virtualization\\v2:Msvm_AggregationMetricDefinition.Id=\"Microsoft:3F6F1051-C8FC-47EF-9821-C07240848748\""")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("Dependent : {0}", mObject("Dependent"))
Next
comments powered by Disqus
WUtils.com