PostSharp6.4/API Reference/Post­Sharp.​Extensibility Namespace/Metric­Attribute Class

MetricAttribute Class

Custom attribute that, when applied on an aspect, causes the aspect to increment some metric at build time.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Extensibility.MetricAttribute

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public class MetricAttribute : Attribute

The MetricAttribute type exposes the following members.

Constructors
  NameDescription
Public methodMetricAttribute
Initializes a new MetricAttribute.
Properties
  NameDescription
Public propertyAllowImplementationMetrics
Determines whether the usage of features used by the target aspects must be instrumented.
Public propertyMetricName
Gets the name of the metric.
Public propertyOperand
Gets the operand of the metric.
Remarks
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.
See Also