An abstract class that represents port runtime data collected by an Ethernet switch extension. All Ethernet port data classes must derive from this abstract class.
The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.
Syntax
[Abstract, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_EthernetPortData : CIM_ManagedElement
{
string InstanceID;
string Caption;
string Description;
string ElementName;
string SystemCreationClassName;
string SystemName;
string DeviceCreationClassName = "Msvm_EthernetSwitchPort";
string DeviceID;
string CreationClassName;
string Name;
};
Members
The Msvm_EthernetPortData class has these types of members:
Properties
The Msvm_EthernetPortData class has these properties.
Caption
Data type: string
Access type: Read-only
A short description of the object. This property is inherited from CIM_ManagedElement.
CreationClassName
Data type: string
Access type: Read-only
The name of the subclass used in the creation of this port data instance.
Description
Data type: string
Access type: Read-only
A description of the object. This property is inherited from CIM_ManagedElement.
DeviceCreationClassName
Data type: string
Access type: Read-only
Qualifiers: Key, Propagated ("CIM_LogicalDevice.CreationClassName"), MaxLen (256)
The scoping system's creation class name. This property is always set to "Msvm_EthernetSwitchPort".
DeviceID
Data type: string
Access type: Read-only
Qualifiers: Key, Propagated ("CIM_LogicalDevice.DeviceID"), MaxLen (64)
The Device ID of the port that scopes this port data instance.
ElementName
Data type: string
Access type: Read-only
A display name for the object. This property is inherited from CIM_ManagedElement.
InstanceID
Data type: string
Access type: Read-only
Qualifiers: Key
Uniquely identifies an instance of this class. This property is inherited from CIM_ManagedElement.
Name
Data type: string
Access type: Read-only
A string that uniquely identifies this port data instance within the scope of the switch and port.
SystemCreationClassName
Data type: string
Access type: Read-only
Qualifiers: Key, Propagated ("CIM_System.CreationClassName"), MaxLen (256)
The scoping system's creation class name.
SystemName
Data type: string
Access type: Read-only
Qualifiers: Key, Propagated ("CIM_System.Name"), MaxLen (256)
The name of the virtual switch that scopes this port data instance.
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.
