Microsoft Operations Manager |
The GetCustomFieldmethod gets the value of a user-defined custom field of an alert.
[VBScript]
Alert.GetCustomField(FieldNumber Integer)
String
The following example shows how to get the value of the second user-defined custom field of an alert.
[VBScript]
Function GetAlertCustomData()
Dim objAlert
Dim strCustomField2
If (ScriptContext.IsAlert()) Then
Set objAlert = ScriptContext.Alert
strCustomField2 = objAlert.GetCustomField(2)
Set objAlert = Nothing
End If
GetAlertCustomData = strCustomField2
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.