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 TypeCondition
System.ArgumentNullExceptionA null reference (Nothing in Visual Basic) was passed to the method.
Microsoft.EnterpriseManagement.Mom.MomSdkObjectModifiedExceptionThe 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

Alert Class | Alert Members

Show: