Condividi tramite


Translating the Authored Firewall Policy into API Calls

The INetFwRule interface provides access to the properties of a rule. All the examples provided below will make use of it. You should familiarize yourself with it before reading further.

The following table presents the rule properties exposed by INetFwRule interface.

INetFwRule Property Comment
Action Accesses the Action property of this rule.
Enabled Accesses the Enabled property for this rule.
ApplicationName Accesses the ApplicationName property for this rule.
Description Accesses the Description property for this rule.
Direction Accesses the Direction property for this rule.
EdgeTraversal Accesses the EdgeTraversal property for this rule.
Grouping Accesses the Grouping property for this rule.
IcmpTypesAndCodes Accesses the IcmpTypesAndCodes property for this rule.
Interfaces Accesses the Interfaces property for this rule.
InterfaceTypes Accesses the InterfaceTypes property for this rule.
LocalAddresses Accesses the LocalAddresses property for this rule.
LocalPorts Accesses the LocalPorts property of this rule.
Name Accesses the Name property for this rule.
Profiles Accesses the Profiles property for this rule.
Protocol Accesses the Protocol property for this rule.
RemoteAddresses Accesses the RemoteAddresses property of this rule.
RemotePorts Accesses the RemotePorts property for this rule.
ServiceName Accesses the ServiceName property for this rule.