Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / MetricDefinition Class / GetKey Method / GetKey(String,String,String) Method
The unique metric type
The name of the performance counter category (performance object) with which this performance counter is associated.
The name of the performance counter.

In This Topic
    GetKey(String,String,String) Method
    In This Topic
    Calculate the string key for a metric definition.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetKey( _
       ByVal metricTypeName As String, _
       ByVal categoryName As String, _
       ByVal counterName As String _
    ) As String

    Parameters

    metricTypeName
    The unique metric type
    categoryName
    The name of the performance counter category (performance object) with which this performance counter is associated.
    counterName
    The name of the performance counter.

    Return Value

    The unique string key for this item
    Exceptions
    ExceptionDescription
    The provided metricsSystem, categoryName, or counterName was null.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also