PostSharpAPI ReferencePost­Sharp.​ExtensibilityMetric­Attribute
Open sandboxFocus

MetricAttribute Class

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

Inheritance
System.Object
MetricAttribute
Namespace: PostSharp.Extensibility
Assembly: PostSharp.dll
Syntax
public class MetricAttribute : Attribute
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.

Constructors

Name Description
MetricAttribute(String, Object)

Initializes a new MetricAttribute.

Properties

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.