INetFwRules interface (Windows)

Switch View :
ScriptFree
INetFwRules interface

Applies to: desktop apps only

The INetFwRules interface provides a collection of firewall rules.

Members

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

Methods

The INetFwRules interface has these methods.

MethodDescription
Add

Adds a new rule to the collection.

get_Count

Returns the number of rules in the collection.

get_NewEnum

Returns an object that can be used to enumerate the rules in the collection.

Item

Retrieves a rule from the collection.

Remove

Removes a specified rule from the collection.

 

Properties

The INetFwRules interface has these properties.

PropertyDescription

_NewEnum

Gives access to a new enumerator for the rules.

Count

Access to the number of rules in the collection.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Netfw.h

DLL

FirewallAPI.dll

See also

IDispatch
IUnknown

 

 

Send comments about this topic to Microsoft

Build date: 2/14/2012