Alerts Property of the IFPCArray Interface

The Alerts property gets an FPCAlerts collection that contains objects defining all the alerts in the array.

[C++]
HRESULT get_Alerts(
	IFPCAlerts** ppAlerts
);

Parameters

ppAlerts

Address of an interface pointer that on return points to an IFPCAlerts interface that represents the collection of all the alerts in the array.

Return Value

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

[Visual Basic]
Property Alerts As FPCAlerts

Property Value

Reference to the FPCAlerts collection for the array.

Example Code

The following code uses the Alerts property to retrieve the name of an individual alert:
Dim root As New FPCLib.FPC
Dim alertName As String
Dim array1 As FPCArray
Set array1 = root.Arrays(1)
alertName = array1.Alerts(1).Name

Remarks

This property is read-only. You can add, delete, or modify the alerts for the array by calling the methods of the FPCAlerts collection retrieved (the IFPCAlerts interface retrieved in C++).

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.