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)
Syntax
'Declaration
Public Sub New ( _
creationData As SPPerformanceMonitorCreationData _
)
'Usage
Dim creationData As SPPerformanceMonitorCreationData
Dim instance As New SPSystemPerformanceCounterMonitor(creationData)
public SPSystemPerformanceCounterMonitor(
SPPerformanceMonitorCreationData creationData
)
Parameters
creationData
Type: Microsoft.SharePoint.Utilities.SPPerformanceMonitorCreationDataA persisted object containing values for initializing a performance monitor.
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