Microsoft Operations Manager |
The AlertSourceproperty gets the source of the alert.
[VBScript] Alert.AlertSource
Read/Write
String
The source of an alert is a user-defined name. If no name is defined, the event source is typically used.
The following example shows how to create a new alert and set the Sourceproperty to the strSourceparameter.
[VBScript]
Function MakeAlert(strSource)
Dim objAlert
Set objAlert = ScriptContext.CreateAlert()
objAlert.AlertSource = strSource
Set MakeAlert = objAlert
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.