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

Msvm_EthernetSwitchPortAclSettingData class

· 52CE 我爱测

Represents the access control list (ACL) for switch port settings.

Represents the access control list (ACL) for switch port settings.

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

Syntax

[Dynamic, UUID("998BEF4A-5D55-492A-9C43-8B2F5EAE9F2B"), ExtensionId("11EC6134-128A-4A23-B12F-164184B48348"), Provider("VmmsWmiInstanceAndMethodProvider"), InterfaceVersion("1"), InterfaceRevision("0"), DisplayName("Ethernet Switch Port ACL Settings"), AMENDMENT]
class Msvm_EthernetSwitchPortAclSettingData : Msvm_EthernetSwitchPortFeatureSettingData
{
  string InstanceID;
  string Caption = "Ethernet Switch Port ACL Settings";
  string Description = "Represents the base class for switch port settings.";
  string ElementName = "Ethernet Switch Port ACL Settings";
  string Name = "";
  uint8  Direction = 0;
  uint8  Applicability = 0;
  uint8  AclType = 0;
  uint8  Action = 0;
  string LocalAddress = "";
  uint8  LocalAddressPrefixLength = 0;
  string RemoteAddress = length = 0;
  uint8  RemoteAddressPrefixLength = 0;
};

Members

The Msvm_EthernetSwitchPortAclSettingData class has these types of members:

Properties

The Msvm_EthernetSwitchPortAclSettingData class has these properties.

AclType

Data type: uint8

Access type: Read/write

Qualifiers: WmiDataId (4), InterfaceVersion (1), InterfaceRevision (0)

This indicates the type of ACL endpoint.

Unknown (0)

MAC Acl (1)

IPv4 Acl (2)

IPv6 Acl (3)

Action

Data type: uint8

Access type: Read/write

Qualifiers: WmiDataId (5), InterfaceVersion (1), InterfaceRevision (0)

This indicates the action of the ACL.

Unknown (0)

Allow (1)

Deny (2)

Meter (3)

Applicability

Data type: uint8

Access type: Read/write

Qualifiers: WmiDataId (3), InterfaceVersion (1), InterfaceRevision (0)

This indicates whether the ACL applies to the local or remote endpoint.

Unknown (0)

Local (1)

Remote (2)

Caption

Data type: string

Access type: Read-only

A short description of the object. This property is inherited from CIM_ManagedElement, and it is always set to "Ethernet Switch Port ACL Settings".

Description

Data type: string

Access type: Read-only

A description of the object. This property is inherited from CIM_ManagedElement, and it is always set to "Represents the base class for switch port settings.".

Direction

Data type: uint8

Access type: Read/write

Qualifiers: WmiDataId (2), InterfaceVersion (1), InterfaceRevision (0)

This indicates whether the ACL applies to ingress or egress direction.

Unknown (0)

Incoming (1)

Outgoing (2)

ElementName

Data type: string

Access type: Read-only

A display name for the object. This property is inherited from CIM_ManagedElement, and it is always set to "Ethernet Switch Port ACL Settings".

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key

Uniquely identifies an instance of this class. This property is inherited from CIM_ManagedElement.

LocalAddress

Data type: string

Access type: Read/write

Qualifiers: MaxLen (40), WmiDataId (6), InterfaceVersion (1), InterfaceRevision (0)

The local address of the virtual machine. This can be an IPv4, IPv6, or a MAC address.

LocalAddressPrefixLength

Data type: uint8

Access type: Read/write

Qualifiers: WmiDataId (7), InterfaceVersion (1), InterfaceRevision (0)

The local address prefix length.

Name

Data type: string

Access type: Read/write

Qualifiers: MaxLen (64), WmiDataId (1), InterfaceVersion (1), InterfaceRevision (0)

The display name of the ACL.

RemoteAddress

Data type: string

Access type: Read/write

Qualifiers: MaxLen (40), WmiDataId (8), InterfaceVersion (1), InterfaceRevision (0)

The remote address of the virtual machine. This can be IPv4, IPv6, or a MAC address.

RemoteAddressPrefixLength

Data type: uint8

Access type: Read/write

Qualifiers: WmiDataId (9), InterfaceVersion (1), InterfaceRevision (0)

The remote address prefix length.

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)

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

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