Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / MetricDefinition Class / GetKey Method / GetKey(MetricDefinition,String) Method
The existing metric definition object to generate a string key for
The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.

In This Topic
    GetKey(MetricDefinition,String) Method
    In This Topic
    Calculate the string key for a metric.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetKey( _
       ByVal metricDefinition As MetricDefinition, _
       ByVal instanceName As String _
    ) As String
    public static string GetKey( 
       MetricDefinition metricDefinition,
       string instanceName
    )

    Parameters

    metricDefinition
    The existing metric definition object to generate a string key for
    instanceName
    The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.

    Return Value

    The unique string key for this item
    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