Microsoft Operations Manager |
The SetCustomFieldmethod sets the value of a user-defined custom field of an alert.
[VBScript]
Alert.SetCustomField(FieldNumber Integer, FieldValue String)
None
The following example shows how to store an array of values in the user-defined custom field of an alert.
[VBScript]
Function StoreArrayInCustomField(objAlert, intField, arrValues)
Dim intIndex
Dim strFieldValue
For intIndex = LBound(arrValues) To UBound(arrValues)
' create a comma-separated string from the array
strFieldValue = strFieldValue &
CStr(arrValues(intIndex)) & ","
Next
objAlert.SetCustomField(intField, strFieldValue)
StoreArrayInCustomField = strFieldValue
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.