HistogramAttribute Constructors

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

HistogramAttribute(String[])

Initializes a new instance of the HistogramAttribute class.

HistogramAttribute(Type)

Initializes a new instance of the HistogramAttribute class.

HistogramAttribute(String[])

Source:
HistogramAttribute.cs

Initializes a new instance of the HistogramAttribute class.

C#
public HistogramAttribute(params string[] tagNames);

Parameters

tagNames
String[]

variable array of tag names.

Applies to

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

HistogramAttribute(Type)

Source:
HistogramAttribute.cs

Initializes a new instance of the HistogramAttribute class.

C#
public HistogramAttribute(Type 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

.NET 10 (package-provided) i druge verzije
Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)