大网数据广告活动
网络与域名解析

MSFT_NetProtocolPortFilter class

· 52CE 我爱测

Filters traffic based on its protocol and port.

Filters traffic based on its protocol and port.

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

Syntax

class MSFT_NetProtocolPortFilter : CIM_FilterEntryBase
{
  string   Protocol;
  string   RemotePort[];
  string   LocalPort[];
  string   IcmpType[];
  uint32   DynamicTransport;
  string   Name;
  string   SystemCreationClassName;
  string   SystemName;
  string   CreationClassName;
  boolean  IsNegated;
  datetime InstallDate;
  uint16   OperationalStatus[];
  string   StatusDescriptions[];
  string   Status;
  uint16   HealthState;
  uint16   CommunicationStatus;
  uint16   DetailedStatus;
  uint16   OperatingStatus;
  uint16   PrimaryStatus;
  string   InstanceID;
  string   Caption;
  string   Description;
  string   ElementName;
};

Members

The MSFT_NetProtocolPortFilter class has these types of members:

Properties

The MSFT_NetProtocolPortFilter class has these properties.

Caption

Data type: string

Access type: Read-only

Used in CimInstance.ToString(). A short string for describing this instance when debugging.

CommunicationStatus

Data type: uint16

Access type: Read-only

This field is ignored.

CreationClassName

Data type: string

Access type: Read-only

Reserved for internal use by the WMI provider only.

Description

Data type: string

Access type: Read-only

This field is ignored.

DetailedStatus

Data type: uint16

Access type: Read-only

This field is ignored.

DynamicTransport

Data type: uint32

Access type: Read-only

Allows filtering traffic to/from endpoints by certain kinds of virtual transports, rather than traditional tuples of addresses, protocols, and ports.

0

1

2

4

8

16

ElementName

Data type: string

Access type: Read-only

This field is ignored.

HealthState

Data type: uint16

Access type: Read-only

This field is ignored.

IcmpType

Data type: string array

Access type: Read-only

Applies only when Protocol is ICMPv4 or ICMPv6. ICMP Type/Code pairs this filter applies to. May be an ICMP type (0-255), or an ICMP type/code pair in the format Type.Code, where type and code values are numbers from 0 to 255.

InstallDate

Data type: datetime

Access type: Read-only

This field is ignored.

InstanceID

Data type: string

Access type: Read-only

A string that uniquely identifies this instance within the PolicyStore.

IsNegated

Data type: boolean

Access type: Read-only

This field is ignored.

LocalPort

Data type: string array

Access type: Read-only

Applies only when Protocol is TCP or UDP. Local ports this filter applies to. May be a number or range 0-65535, or one of the following: Any, RPC, RPC-EPMap, IPHTTPSIn, PlayToDiscovery.

Name

Data type: string

Access type: Read-only

Reserved for internal use by the WMI provider only.

OperatingStatus

Data type: uint16

Access type: Read-only

This field is ignored.

OperationalStatus

Data type: uint16 array

Access type: Read-only

This field is ignored.

PrimaryStatus

Data type: uint16

Access type: Read-only

This field is ignored.

Protocol

Data type: string

Access type: Read-only

IP Protocol Number that this filter applies to. May be 0-255 or one of the following: ICMPv4, ICMPv6, TCP, UDP.

RemotePort

Data type: string array

Access type: Read-only

Applies only when Protocol is TCP or UDP. Remote ports this filter applies to. May be a number or range 0-65535, or one of the following: Any, IPHTTPSOut.

Status

Data type: string

Access type: Read-only

This field is ignored.

StatusDescriptions

Data type: string array

Access type: Read-only

This field is ignored.

SystemCreationClassName

Data type: string

Access type: Read-only

Reserved for internal use by the WMI provider only.

SystemName

Data type: string

Access type: Read-only

Reserved for internal use by the WMI provider only.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Namespace Root\StandardCimv2
MOF WFasCim.mof
DLL WFasCim.dll

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors (upstream author metadata: windowssdkdev). 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)

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

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