Share via


GaugeAttribute 建構函式

定義

多載

GaugeAttribute(String[])

初始化 GaugeAttribute 類別的新執行個體。

GaugeAttribute(Type)

初始化 GaugeAttribute 類別的新執行個體。

GaugeAttribute(String[])

來源:
GaugeAttribute.cs
來源:
GaugeAttribute.cs

初始化 GaugeAttribute 類別的新執行個體。

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

參數

tagNames
String[]

標記名稱的變數陣列。

適用於

GaugeAttribute(Type)

來源:
GaugeAttribute.cs
來源:
GaugeAttribute.cs

初始化 GaugeAttribute 類別的新執行個體。

public:
 GaugeAttribute(Type ^ type);
public GaugeAttribute (Type type);
new Microsoft.Extensions.Diagnostics.Metrics.GaugeAttribute : Type -> Microsoft.Extensions.Diagnostics.Metrics.GaugeAttribute
Public Sub New (type As Type)

參數

type
Type

提供計量標記名稱的類型。 標籤值取自類型的公用欄位和屬性。

適用於