다음을 통해 공유


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

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