'Declaration
Public Overloads Shared Function TryGetValue( _ ByVal userObjectType As Type, _ ByVal counterName As String, _ ByRef value As SampledMetricDefinition _ ) As Boolean
public static bool TryGetValue( Type userObjectType, string counterName, out SampledMetricDefinition value )
Parameters
- userObjectType
- A specific Type with attributes defining one or more sampled metrics.
- counterName
- The counter name of the desired individual sampled metric definition defined by attributes on the specified Type.
- value
- The output variable to receive the SampledMetricDefinition object if found (null if not).
Return Value
False if no SampledMetric attribute is found on the specified Type, or if no metric definition is registered with the 3-part Key found in that attribute (combined with the specified counter name), true if a SampledMetricDefinition is registered with the given Key, or throws an exception if the registered definition found is not a SampledMetricDefinition.