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

FPCArray


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.