PolicyRules Property of the IFPCSystemPolicy Interface

The PolicyRules property gets the FPCSystemPolicyRules collection of all of the system policy rules in the array.

HRESULT get_PolicyRules(
	IFPCSystemPolicyRules** ppSystemPolicyRules



Address of an interface pointer that on return points to an IFPCSystemPolicyRules interface that represents the collection of system policy rules.

Return Value

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

[Visual Basic]
Property PolicyRules As FPCSystemPolicyRules

Property Value

Reference to an FPCSystemPolicyRules collection of system policy rules.

Example Code

This VBScript code example iterates through the FPCPolicyRule objects contained in the FPCSystemPolicyRules collection of system policy rules for the containing array and disables logging for all system policy rules in the collection.
' Declare the objects needed.
Dim root		 ' The FPCLib.FPC root object
Dim isaArray	 ' An FPCArray object
Dim rules		' An FPCSystemPolicyRules collection
Dim rule		 ' An FPCPolicyRule object
' Create the root object.
Set root = CreateObject("FPC.Root")
' Get references to the array object and
' the collection of system policy rules.
Set isaArray = root.GetContainingArray()
Set rules = isaArray.SystemPolicy.PolicyRules
' Run through the system policy rules collection
' and set the EnableLogging property for each rule to False.
For Each rule In rules
	rule.EnableLogging = False
WSCript.Echo "Done!"


This property is read-only.


Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).

Declared in Msfpccom.idl.


Requires Msfpccom.dll.

See Also


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.