Share via


IFPCSystemPolicy::PolicyRules property

Applies to: desktop apps only

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

This property is read-only.

Syntax

HRESULT get_PolicyRules(
  IFPCSystemPolicyRules **ppSystemPolicyRules
);
' Data type: FPCSystemPolicyRules

Property PolicyRules( _
  ByVal ppSystemPolicyRules As IFPCSystemPolicyRules _
) As FPCSystemPolicyRules

Property value

Reference to an FPCSystemPolicyRules collection of system policy rules.

Error codes

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

Remarks

This property is read-only.

Examples

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!"

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCSystemPolicy

 

 

Build date: 7/12/2010