Share via


RuleElements Property of the IFPCArray Interface

The RuleElements property gets an FPCRuleElements object that provides access to collections of rule elements for the array. These rule elements include content type sets, schedules, protocol definitions, Web listeners, authentication schemes, Radius servers, user sets, and sets of various types of network entities and are used to define policy rules in the array policy. They also include definitions of alert-triggering events that can be signaled by Forefront TMG and its add-ins within the array.

C++

HRESULT get_RuleElements(
    IFPCRuleElements** ppRuleElements
);

Parameters

  • ppRuleElements
    Address of an interface pointer that on return points to an IFPCRuleElements interface that represents collections of rule elements for the array.

Return Value

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

Visual Basic

Property RuleElements As FPCRuleElements

Property Value

Reference to the FPCRuleElements object that provides access to collections of rule elements for the array.

Example Code

The following Visual Basic code example uses the RuleElements property to list the number of schedules defined in an array:

Dim root As New FPCLib.FPC
Dim isaArray As FPCArray
Dim numSchedules As Integer
Set isaArray = root.GetContainingArray()
numSchedules = isaArray.RuleElements.Schedules.Count

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

FPCArray

Send comments about this topic to Microsoft

Build date: 6/30/2010