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.
This property method returns S_OK if the call is successful; otherwise, it returns an error code.
Property PolicyRules As FPCSystemPolicyRules
Reference to an FPCSystemPolicyRules collection of system policy rules.
' 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!"
This property is read-only.
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. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.