Microsoft Internet Security and Acceleration Server 2000

FPCAlerts.Add Method

Creates a new alert, inserts it into the collection, and returns a reference to it.

VBScript Syntax[VBScript]

[ oFPCAlert = ] FPCAlerts.Add( sName, sEventGUID, sServerName, lAdditionalKey )

C++ Syntax[C++]

HRESULT Add(
  BSTR sName,
  BSTR sEventGUID,
  BSTR sServerName,
  long lAdditionalKey,
  IFPCAlert **ppoFPCAlert
);

Parameters

sName
Required. String that specifies the name of the alert. Can be used in FPCAlerts to retrieve the alert.
sEventGUID
Required. String that specifies the GUID of the event that triggers this alert.
sServerName
Optional. String that specifies the name of the server that is allowed to signal alerts. If no server is specified, any server is allowed to signal the alert.
lAdditionalKey
Optional. Long value that specifies the index to the additional-key table of this alert's event. This parameter's value should be less than or equal to the number of additional event keys. If the corresponding event has no additional-key table, then this parameter should be set to -1.

Return Values

oFPCAlert
Returns a reference to the FPCAlert object.

Applies To

FPCAlerts

[an error occurred while processing this directive]