TryGetValue(Guid,EventMetricDefinition) Method
Retrieve an EventMetricDefinition by its Id, if present. (Throws an ArgumentException if the Id resolves to a SampledMetricDefinition instead.)
Parameters
- id
- The Id of the event metric definition to get.
- value
- The output variable to receive the EventMetricDefinition object if found (null if not).
Return Value
False if no metric definition is registered with the given Id, true if an EventMetricDefinition is registered with the given Id, or throws an exception if the registered definition is not an EventMetricDefinition.
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