MetricAttribute Class |
Custom attribute that, when applied on an aspect, causes the aspect to increment some metric at build time.

Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 6.4.3.0 (6.4.3.0)

C#
public class MetricAttribute : Attribute
The MetricAttribute type exposes the following members.

Name | Description | |
---|---|---|
![]() | MetricAttribute |
Initializes a new MetricAttribute.
|

Name | Description | |
---|---|---|
![]() | AllowImplementationMetrics |
Determines whether the usage of features used by the target aspects must be instrumented.
|
![]() | MetricName |
Gets the name of the metric.
|
![]() | Operand |
Gets the operand of the metric.
|

These metrics are used by PostSharp to collect usage information and are transferred to the makers
of PostSharp only if you opted in for the Customer Experience Improvement Program.
