Dela via


HistogramAttribute<T> Constructors

Definition

Overloads

HistogramAttribute<T>(String[])

Initializes a new instance of the HistogramAttribute<T> class.

HistogramAttribute<T>(Type)

Initializes a new instance of the HistogramAttribute<T> class.

HistogramAttribute<T>(String[])

Source:
HistogramAttributeT.cs

Initializes a new instance of the HistogramAttribute<T> class.

public:
 HistogramAttribute(... cli::array <System::String ^> ^ tagNames);
public HistogramAttribute (params string[] tagNames);
new Microsoft.Extensions.Diagnostics.Metrics.HistogramAttribute<'T (requires 'T : struct)> : string[] -> Microsoft.Extensions.Diagnostics.Metrics.HistogramAttribute<'T (requires 'T : struct)>
Public Sub New (ParamArray tagNames As String())

Parameters

tagNames
String[]

A variable array of tag names.

Applies to

HistogramAttribute<T>(Type)

Source:
HistogramAttributeT.cs

Initializes a new instance of the HistogramAttribute<T> class.

public:
 HistogramAttribute(Type ^ type);
public HistogramAttribute (Type type);
new Microsoft.Extensions.Diagnostics.Metrics.HistogramAttribute<'T (requires 'T : struct)> : Type -> Microsoft.Extensions.Diagnostics.Metrics.HistogramAttribute<'T (requires 'T : struct)>
Public Sub New (type As Type)

Parameters

type
Type

A type providing the metric tag names. The tag values are taken from the type's public fields and properties.

Applies to