SPSystemPerformanceCounterMonitor.Instance property

Gets the name of the instance of the counter that is being watched by by the SPSystemPerformanceCounterMonitor object.

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

Syntax

'Declaration
Public ReadOnly Property Instance As String
    Get
'Usage
Dim instance As SPSystemPerformanceCounterMonitor
Dim value As String

value = instance.Instance
public string Instance { get; }

Property value

Type: System.String
The name of an instance.

Remarks

If there is only one instance, the Instance property is a null reference (Nothing in Visual Basic).

If the instance is named after the SharePoint Foundation Web application, the Instance property returns “IISSITE_NAME”.

If the instance is named after the process, the Instance property returns “PROCESS_NAME”.

See also

Reference

SPSystemPerformanceCounterMonitor class

SPSystemPerformanceCounterMonitor members

Microsoft.SharePoint.Utilities namespace