Share via


MonitoringAlert.Update Method (String, MonitoringConnector)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Updates the alert and adds a comment about the update, using the specified connector.

Namespace: Microsoft.EnterpriseManagement.Monitoring
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)

Usage

'Usage
Dim instance As MonitoringAlert
Dim comments As String
Dim connector As MonitoringConnector

instance.Update(comments, connector)

Syntax

'Declaration
Public Sub Update ( _
    comments As String, _
    connector As MonitoringConnector _
)
public void Update (
    string comments,
    MonitoringConnector connector
)
public:
void Update (
    String^ comments, 
    MonitoringConnector^ connector
)
public void Update (
    String comments, 
    MonitoringConnector connector
)
public function Update (
    comments : String, 
    connector : MonitoringConnector
)

Parameters

  • comments
    The comment about the update.
  • connector
    The connector on whose behalf to update the alert.

Remarks

This method makes permanent any changes made to the properties of the alert. The comments are appended to the history to this alert.

Performing an Update modifies the LastModified property of the alert to the current time, LastModifiedBy property to the name of the user who performed the update, and modifies the LastModifiedByNonConnector to the current time.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

MonitoringAlert Class
MonitoringAlert Members
Microsoft.EnterpriseManagement.Monitoring Namespace