Custom attribute that, when applied to an aspect, causes the aspect to increment a metric at build time.
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class MetricAttribute : AttributeRemarks
These metrics are used by PostSharp to collect usage information and are transferred to the makers of PostSharp only if you have opted in to the Customer Experience Improvement Program.
Constructors
| Name | Description |
|---|---|
| MetricAttribute(string, object) | Initializes a new instance of the MetricAttribute class. |
Properties
| Name | Description |
|---|---|
| AllowImplementationMetrics | Gets or sets a value indicating 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. |