Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.Metrics Namespace / SampledMetricDefinition Class / ContainsKey Method / ContainsKey(String,String,String) Method
The metrics capture system label.
The name of the category with which this definition is associated.
The name of the definition within the category.

ContainsKey(String,String,String) Method
Determines whether the collection of all metric definitions contains an element with the specified key.
Syntax
'Declaration
 
Public Overloads Shared Function ContainsKey( _
   ByVal metricsSystem As String, _
   ByVal categoryName As String, _
   ByVal counterName As String _
) As Boolean
 

Parameters

metricsSystem
The metrics capture system label.
categoryName
The name of the category with which this definition is associated.
counterName
The name of the definition within the category.

Return Value

true if the collection contains an element with the key; otherwise, false.
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