INetFwRules interface (netfw.h)

The INetFwRules interface provides a collection of firewall rules.

Inheritance

The INetFwRules interface inherits from the IDispatch interface. INetFwRules also has these types of members:

Methods

The INetFwRules interface has these methods.

 
INetFwRules::Add

The Add method adds a new rule to the collection.
INetFwRules::get__NewEnum

Returns an object supporting IEnumVARIANT that can be used to iterate through all the rules in the collection.
INetFwRules::get_Count

Returns the number of rules in a collection.
INetFwRules::Item

The Item method returns the specified rule if it is in the collection.
INetFwRules::Remove

The Remove method removes a rule from the collection.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header netfw.h

See also

IDispatch

IUnknown