共用方式為


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)
Available in Sandboxed Solutions: No

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