ManagementGroup.GetMonitoringTasks<T> Method (ICollection<T>)
Applies To: Operations Manager for System Center 2012
Note: This API is now obsolete.
Retrieves a collection of the monitoring tasks in the management group that target the specified monitoring objects.
Namespace: Microsoft.EnterpriseManagement
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
[ObsoleteAttribute("Please use TaskConfiguration.GetTasks<T>()")]
public ReadOnlyCollection<MonitoringTask> GetMonitoringTasks<T>(
ICollection<T> monitoringObjects
)
where T : PartialMonitoringObject
public:
generic<typename T>
where T : PartialMonitoringObject
[ObsoleteAttribute("Please use TaskConfiguration.GetTasks<T>()")]
ReadOnlyCollection<MonitoringTask^>^ GetMonitoringTasks(
ICollection<T>^ monitoringObjects
)
[<ObsoleteAttribute("Please use TaskConfiguration.GetTasks<T>()")>]
member GetMonitoringTasks<'T when 'T : PartialMonitoringObject> :
monitoringObjects:ICollection<'T> -> ReadOnlyCollection<MonitoringTask>
<ObsoleteAttribute("Please use TaskConfiguration.GetTasks<T>()")>
Public Function GetMonitoringTasks(Of T As PartialMonitoringObject) (
monitoringObjects As ICollection(Of T)
) As ReadOnlyCollection(Of MonitoringTask)
Parameters
monitoringObjects
Type: System.Collections.Generic.ICollection<T>The monitoring objects targeted by these tasks.
Return Value
Type: System.Collections.ObjectModel.ReadOnlyCollection<MonitoringTask>
Returns aReadOnlyCollection<T> object ofMonitoringTask objects.
Type Parameters
- T
Must be of type PartialMonitoringObject.
See Also
GetMonitoringTasks Overload
ManagementGroup Class
Microsoft.EnterpriseManagement Namespace
Return to top