Microsoft Operations Manager |
The SetEventParametermethod sets the event parameters of a newly created event object.
[VBScript]
Event.SetEventParameter(Parameter String)
String
The following example shows how to set the first and second event parameters for a newly created event object.
[VBScript]
Function SetParams(strParam1, strParam2)
Dim objEvent
Set objEvent = ScriptContext.CreateEvent()
objEvent.SetEventParameter(strParam1)
objEvent.SetEventParameter(strParam2)
ScriptContext.Submit(objEvent)
Set SetParams = objEvent
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.