Msvm_EthernetPortAllocationSettingData 类

表示静态或动态交换机端口的分配请求,或表示当前分配的静态或动态交换机端口的活动配置。 动态交换机端口的分配请求也称为连接请求。

以下语法是简化的托管对象格式 (MOF) 代码,其中包含所有继承的属性。

语法

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_EthernetPortAllocationSettingData : CIM_EthernetPortAllocationSettingData
{
  string  InstanceID = "Microsoft:GUID\DeviceSpecificData";
  string  Caption = "Ethernet Switch Port Settings";
  string  Description = "Ethernet Switch Port Settings";
  string  ElementName;
  uint16  ResourceType = 33;
  string  OtherResourceType;
  string  ResourceSubType;
  string  PoolID;
  uint16  ConsumerVisibility = 3;
  string  HostResource[];
  string  AllocationUnits;
  uint64  VirtualQuantity;
  uint64  Reservation;
  uint64  Limit;
  uint32  Weight = 0;
  boolean AutomaticAllocation;
  boolean AutomaticDeallocation;
  string  Parent;
  string  Connection[];
  string  Address;
  uint16  MappingBehavior;
  string  AddressOnParent;
  string  VirtualQuantityUnits = "count";
  uint16  DesiredVLANEndpointMode;
  string  OtherEndpointMode;
  uint16  EnabledState;
  string  LastKnownSwitchName;
  string  RequiredFeatures[];
  string  RequiredFeatureHints[];
  string  TestReplicaPoolID;
  string  TestReplicaSwitchName;
  string  CompartmentGuid;
};

成员

Msvm_EthernetPortAllocationSettingData 类具有以下类型的成员:

属性

Msvm_EthernetPortAllocationSettingData 类具有以下属性。

Address

数据类型: string

访问类型:只读

资源的地址。 此属性继承自 CIM_ResourceAllocationSettingData

AddressOnParent

数据类型: string

访问类型:只读

描述父级上下文中此资源的地址。 ParentAddressOnParent 属性用于描述控制器关系以及控制器上设备的排序。 此属性继承自 CIM_ResourceAllocationSettingData

AllocationUnits

数据类型: string

访问类型:只读

预留限制属性使用的分配单位。 此属性继承自 CIM_ResourceAllocationSettingData

AutomaticAllocation

数据类型: 布尔值

访问类型:只读

指示是否会自动分配资源。 此属性继承自 CIM_ResourceAllocationSettingData

AutomaticDeallocation

数据类型: 布尔值

访问类型:只读

指示是否会自动解除分配资源。 此属性继承自 CIM_ResourceAllocationSettingData

Caption

数据类型: string

访问类型:只读

限定符: MaxLen (64)

对象的简短说明。 此属性继承自 CIM_ManagedElement,并且始终设置为“以太网交换机端口设置”。

CompartmentGuid

数据类型: string

访问类型:读/写

此属性指定端口的目标网络隔离舱。 它仅支持内部适配器。

注意

在 Windows 10 中添加的属性。

Connection

数据类型: 字符串 数组

访问类型:只读

此资源连接到的设备。 此属性继承自 CIM_ResourceAllocationSettingData

ConsumerVisibility

数据类型: uint16

访问类型:只读

使用者对已分配资源的可见性。 此属性继承自 CIM_ResourceAllocationSettingData,并且始终设置为 3 (虚拟化) 。

描述

数据类型: string

访问类型:只读

对象的说明。 此属性继承自 CIM_ManagedElement,并且始终设置为“以太网交换机端口设置”。

DesiredVLANEndpointMode

数据类型: uint16

访问类型:只读

VLAN 终结点的所需配置模式。 此属性用于设置与目标以太网端口关联的 Msvm_VLANEndpoint 类实例中的初始 OperationalEndpointMode 属性值。 有关可能的值,请参阅 Msvm_VLANEndpoint 类的 OperationalEndpointMode 属性。 此属性继承自 CIM_EthernetPortAllocationSettingData

ElementName

数据类型: string

访问类型:只读

对象的显示名称。 此属性继承自 CIM_SettingData。 更改此属性将更改关联的逻辑设备派生的元素名称。

EnabledState

数据类型: uint16

访问类型:只读

指示是启用还是禁用分配请求。 当分配请求标记为“已禁用” (3) 时,不会处理分配。 活动配置的 EnabledState 始终标记为“已启用” (2) 。

已启用 (2)

已禁用 (3)

HostResource

数据类型: 字符串 数组

访问类型:只读

虚拟交换机中的每个设备只能分配一个主机资源,因此只能设置此数组的第一个元素。 对于支持此功能的设备,请将 HostResource 数组的第一个元素设置为包含对要分配的基础主机资源的引用。 此属性继承自 CIM_ResourceAllocationSettingData

InstanceID

数据类型: string

访问类型:只读

限定符:

唯一标识此类的实例。 此属性继承自 CIM_SettingData,并且始终设置为“Microsoft:GUID\DeviceSpecificData”。

LastKnownSwitchName

数据类型: string

访问类型:只读

此端口的交换机的最后一个已知友好名称很难关联(如果有)。

注意

在 Windows 10 中添加的属性。

限制

数据类型: uint64

访问类型:只读

虚拟交换机可以使用的最大相应主机资源量。 此属性继承自 CIM_ResourceAllocationSettingData

MappingBehavior

数据类型: uint16

访问类型:只读

指定此资源如何映射到基础资源。 此属性继承自 CIM_ResourceAllocationSettingData

OtherEndpointMode

数据类型: string

访问类型:只读

描述此 VLAN 终结点支持的 VLAN 终结点模型的类型的字符串。 仅当 DesiredVLANEndpointMode 属性设置为 1 (Other) 时,才使用此属性。 当 DesiredVLANEndpointMode 属性是除 1 以外的任何值时,此属性应设置为 Null。 此属性继承自 CIM_EthernetPortAllocationSettingData

OtherResourceType

数据类型: string

访问类型:只读

描述资源类型的字符串,当定义完善的值不可用时, ResourceType 的值为 1 (Other) 。 此属性继承自 CIM_ResourceAllocationSettingData,且不使用。

Parent

数据类型: string

访问类型:只读

资源的父级。 此属性继承自 CIM_ResourceAllocationSettingData

PoolID

数据类型: string

访问类型:只读

从中分配此资源的资源池的标识符。 此属性继承自 CIM_ResourceAllocationSettingData

RequiredFeatureHints

数据类型: 字符串 数组

访问类型:只读

RequiredFeatures 数组中的每个条目对应的显示名称列表。

RequiredFeatures

数据类型: 字符串 数组

访问类型:读/写

表示端口所需的所有功能的功能标识符列表。

预留

数据类型: uint64

访问类型:只读

保留供虚拟交换机使用的资源量。 此属性继承自 CIM_ResourceAllocationSettingData

ResourceSubType

数据类型: string

访问类型:只读

描述此资源特定于实现的子类型的字符串。 例如,这可用于区分相同资源类型的不同模型。 此属性继承自 CIM_ResourceAllocationSettingData

ResourceType

数据类型: uint16

访问类型:只读

此分配设置表示的资源类型。 此属性继承自 CIM_ResourceAllocationSettingData,并且始终设置为 33 (以太网连接) 。

TestReplicaPoolID

数据类型: string

访问类型:读/写

指定网络资源池,在创建测试副本 (replica) 系统时,将从该池中向其分配连接。

TestReplicaSwitchName

数据类型: string

访问类型:读/写

指定虚拟网络交换机的显示名称,创建测试副本 (replica) 系统时将向其分配连接。

VirtualQuantity

数据类型: uint64

访问类型:只读

虚拟交换机中的端口总数。 此属性继承自 CIM_ResourceAllocationSettingData

VirtualQuantityUnits

数据类型: string

访问类型:只读

指定 VirtualQuantity 属性的度量单位。 此属性的值必须是 DSP0004 V2.5 或更高版本的附录 C.1 中定义的编程单位限定符的法定值。 此属性继承自 CIM_ResourceAllocationSettingData

Weight

数据类型: uint32

访问类型:只读

定义每个虚拟交换机的权重的整数。 此属性继承自 CIM_ResourceAllocationSettingData

范围:0 1000

要求

要求
最低受支持的客户端
Windows 8 [仅限桌面应用]
最低受支持的服务器
Windows Server 2012 [仅限桌面应用]
命名空间
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe