PolicyRules Property of the IFPCSystemPolicy Interface

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

[C++]
HRESULT get_PolicyRules(
	IFPCSystemPolicyRules** ppSystemPolicyRules
);

Parameters

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
Next
rules.Save
WSCript.Echo "Done!"

Remarks

This property is read-only.

Requirements

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

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCSystemPolicy


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.