SPPerformanceMonitorCreationData.Instance Property

Gets the name of the instance of the counter that is watched by the monitor that is created from the SPPerformanceMonitorCreationData 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 SPPerformanceMonitorCreationData
Dim value As String

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

Property Value

Type: System.String
The name of the instance.

Remarks

Some kinds of monitored objects have multiple instances that can each be measured separately by separate instances of a counter. For example, if a server has four processors, then any counter in the “Processor” category of monitors has a separate instance for each processor. Each instance has a name; “0”, “1”, “2”, and “3”. If the nature of the object or category is such that there can be only one instance of a given counter, then the instance name is an empty string.

See Also

Reference

SPPerformanceMonitorCreationData Class

SPPerformanceMonitorCreationData Members

Microsoft.SharePoint.Utilities Namespace