Parameters
- metricData
- The object to retrieve both metric values and definition from
- fallbackInstanceName
- The instance name to fall back on if a definition does not specify an instance name binding (may be null).
Exception | Description |
---|---|
System.ArgumentNullException | The provided metricData object was null. |
System.ArgumentException | The specified Type does not have a SampledMetric attribute, so it can't be used to define sampled metrics. - or - The specified Type does not have a usable SampledMetric attribute, so it can't be used to define sampled metrics. - or - The specified Type's SampledMetric attribute has an empty metric namespace which is not allowed, so no metrics can be defined under it. - or - The specified Type's SampledMetric attribute has an empty metric category name which is not allowed, so no metrics can be defined under it. |
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