Compartilhar via


SPSystemPerformanceCounterMonitor Constructor (SPPerformanceMonitorCreationData)

Initializes a new instance of the SPSystemPerformanceCounterMonitor class for the local computer by using values from an object that was persisted in the SharePoint Foundation database.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    creationData As SPPerformanceMonitorCreationData _
)
'Usage
Dim creationData As SPPerformanceMonitorCreationData

Dim instance As New SPSystemPerformanceCounterMonitor(creationData)
public SPSystemPerformanceCounterMonitor(
    SPPerformanceMonitorCreationData creationData
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Either the monitor category name or the counter name specified in creationData is a null reference (Nothing in Visual Basic).

Remarks

This constructor is essentially the same as the SPSystemPerformanceCounterMonitor(String, String, String) constructor, except that the initialization values come from an object that was previously persisted in the database.

See Also

Reference

SPSystemPerformanceCounterMonitor Class

SPSystemPerformanceCounterMonitor Members

SPSystemPerformanceCounterMonitor Overload

Microsoft.SharePoint.Utilities Namespace