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