次の方法で共有


ManagementGroup.UpdateMonitoringAlerts<T> Method (IList<T>, String, MonitoringConnector)

 

Applies To: Operations Manager for System Center 2012

Note: This API is now obsolete.

Updates a specified collection of monitoring alerts for a specified connector and explains the update.

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

Syntax

[ObsoleteAttribute("Please use OperationalData.UpdateMonitoringAlerts<T>()")]
public ReadOnlyCollection<MonitoringAlertUpdateFailure> UpdateMonitoringAlerts<T>(
    IList<T> alerts,
    string comments,
    MonitoringConnector connector
)
where T : MonitoringAlert
public:
generic<typename T>
where T : MonitoringAlert
[ObsoleteAttribute("Please use OperationalData.UpdateMonitoringAlerts<T>()")]
ReadOnlyCollection<MonitoringAlertUpdateFailure^>^ UpdateMonitoringAlerts(
    IList<T>^ alerts,
    String^ comments,
    MonitoringConnector^ connector
)
[<ObsoleteAttribute("Please use OperationalData.UpdateMonitoringAlerts<T>()")>]
member UpdateMonitoringAlerts<'T when 'T : MonitoringAlert> : 
        alerts:IList<'T> *
        comments:string *
        connector:MonitoringConnector -> ReadOnlyCollection<MonitoringAlertUpdateFailure>
<ObsoleteAttribute("Please use OperationalData.UpdateMonitoringAlerts<T>()")>
Public Function UpdateMonitoringAlerts(Of T As MonitoringAlert) (
    alerts As IList(Of T),
    comments As String,
    connector As MonitoringConnector
) As ReadOnlyCollection(Of MonitoringAlertUpdateFailure)

Parameters

  • comments
    Type: System.String

    The comments that explain the reason for the update.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringAlertUpdateFailure>

Returns aReadOnlyCollection<T> object ofMonitoringAlertUpdateFailure objects that contain information about the alerts that failed to update.

Type Parameters

See Also

UpdateMonitoringAlerts Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace

Return to top