EventParameter Method

Gets an event parameter.

Syntax

ScriptContext.Event.EventParameter(Parameter Long)
ScriptContext.CreateEvent.EventParameter(Parameter Long)

Parameters

Parameter Specifies the event parameter to get.

Return Type

String.

Example

To get the second event parameter for the event provided to the script from Microsoft Operations Manager, enter:

Dim MYevent
Set Myevent = ScriptContext.Event
Dim MYalert
Set MYalert = ScriptContext.CreateAlert
Myalert.Description = Myevent.EventParameter(2)

This example sets the alert description to the second parameter of the event.