Alert.AddAlertHistoryComment Method
System Center
Appends the specified text to the alert history.
public void AddAlertHistoryComment( String commentToBeAppended );
Parameters
- commentToBeAppended
- The text to append.
Exceptions
| Exception Type | Condition |
|---|---|
| System.ArgumentNullException | A null reference (Nothing in Visual Basic) was passed to the method. |
| Microsoft.EnterpriseManagement.Mom.MomSdkObjectModifiedException | The underlying item was modified after the object reference was obtained. Try refreshing the object and adding the comment again. |
Remarks
You do not need to call Alert.Update after appending a comment to the alert history.
Requirements
Platforms: Requires Windows 2000 Server or later
Version: Requires MOM 2005 or later
Namespace: Microsoft.EnterpriseManagement.Mom
Assembly: Microsoft.Mom.Sdk (in Microsoft.Mom.Sdk.dll)
See Also
Show: