PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Metric­Attribute Class / Metric­Attribute Constructor

MetricAttribute Constructor

Initializes a new MetricAttribute.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MetricAttribute(
	string metricName,
	Object operand
)

Parameters

metricName
Type: System.String
Metric name.
operand
Type: System.Object
Metric operand.
See Also