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 7 or Windows Vista. |
Server | Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2. |
Version | Requires Forefront Threat Management Gateway (TMG) 2010. |
IDL | Declared in Msfpccom.idl. |
DLL | Requires Msfpccom.dll. |
See Also
Send comments about this topic to Microsoft
Build date: 6/30/2010