Filters a Windows firewall rule by protocol or port.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class MSFT_NetFirewallRuleFilterByProtocolPort : MSFT_NetFirewallRuleFilters
{
MSFT_NetFirewallRule REF GroupComponent;
MSFT_NetProtocolPortFilter REF PartComponent;
};
Members
The MSFT_NetFirewallRuleFilterByProtocolPort class has these types of members:
Properties
The MSFT_NetFirewallRuleFilterByProtocolPort class has these properties.
GroupComponent
Data type: MSFT_NetFirewallRule
Access type: Read-only
Qualifiers: Key, Override
The firewall rule.
PartComponent
Data type: MSFT_NetProtocolPortFilter
Access type: Read-only
Qualifiers: Key, Override
The protocol/port filter applied to the rule.
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.
