'Declaration
Public Overloads Shared Function TryGetValue( _ ByVal metricsSystem As String, _ ByVal categoryName As String, _ ByVal counterName As String, _ ByRef value As SampledMetricDefinition _ ) As Boolean
public static bool TryGetValue( string metricsSystem, string categoryName, string counterName, out SampledMetricDefinition value )
Parameters
- metricsSystem
- The metrics capture system label of the definition to look up.
- categoryName
- The name of the category with which the definition is associated.
- counterName
- The name of the definition within the category.
- value
- The output variable to receive the SampledMetricDefinition object if found (null if not).
Return Value
False if no metric definition is registered with the given Key, true if a SampledMetricDefinition is registered with the given Key, or throws an exception if the registered definition is not a SampledMetricDefinition.