PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public MetricAttribute(
	string metricName,
	Object operand
)

Parameters

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