SPHttpThrottleSettings.GenerateMonitors method

Gets a collection of the SPSystemPerformanceMonitor objects for the parent Web application.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GenerateMonitors As SPSystemPerformanceMonitorCollection
'Usage
Dim instance As SPHttpThrottleSettings
Dim returnValue As SPSystemPerformanceMonitorCollection

returnValue = instance.GenerateMonitors()
public SPSystemPerformanceMonitorCollection GenerateMonitors()

Return value

Type: Microsoft.SharePoint.Utilities.SPSystemPerformanceMonitorCollection
The performance monitors for the Web application.

Remarks

Contrast the object returned by this method with the object returned by the PerformanceMonitors property. The object returned by the GenerateMonitors() method contains data that is currently being reported by the performance monitors. So to read the current values of the monitors, your code would need to call the GenerateMonitors() method . But to change the configuration of a monitor, your code would need to call the PerformanceMonitors property.

See also

Reference

SPHttpThrottleSettings class

SPHttpThrottleSettings members

Microsoft.SharePoint.Utilities namespace