CounterAttribute<T> 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
CounterAttribute<T>(String[]) |
Initializes a new instance of the CounterAttribute<T> class. |
CounterAttribute<T>(Type) |
Initializes a new instance of the CounterAttribute<T> class. |
CounterAttribute<T>(String[])
- Source:
- CounterAttributeT.cs
- Source:
- CounterAttributeT.cs
Initializes a new instance of the CounterAttribute<T> class.
public:
CounterAttribute(... cli::array <System::String ^> ^ tagNames);
public CounterAttribute (params string[] tagNames);
new Microsoft.Extensions.Diagnostics.Metrics.CounterAttribute<'T (requires 'T : struct)> : string[] -> Microsoft.Extensions.Diagnostics.Metrics.CounterAttribute<'T (requires 'T : struct)>
Public Sub New (ParamArray tagNames As String())
Parameters
- tagNames
- String[]
variable array of tag names.
Applies to
CounterAttribute<T>(Type)
- Source:
- CounterAttributeT.cs
- Source:
- CounterAttributeT.cs
Initializes a new instance of the CounterAttribute<T> class.
public:
CounterAttribute(Type ^ type);
public CounterAttribute (Type type);
new Microsoft.Extensions.Diagnostics.Metrics.CounterAttribute<'T (requires 'T : struct)> : Type -> Microsoft.Extensions.Diagnostics.Metrics.CounterAttribute<'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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za