Alert.Description Property
Gets or sets the description of the alert.
Alert.Description
Access
Read/Write
Return Value
String
Remarks
The description of an alert is typically the description of the event that generated the alert.
Examples
The following example shows how to create a new alert and set the Description property.
Function MakeAlertFromEvent()
Dim objAlert
Dim objEvent
If (ScriptContext.IsEvent()) Then
Set objEvent = ScriptContext.Event
Set objAlert = ScriptContext.CreateAlert()
objAlert.Computer = objEvent.SourceComputer
objAlert.ComputerDomain = objEvent.SourceDomain
objAlert.Description = objEvent.EventParameter(1)
Else
Set objAlert = Nothing
End If
Set objEvent = Nothing
Set MakeAlertFromEvent = objAlert
End Function
Requirements
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2000 or later