Counter<T>.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Add(T) |
記錄度量的增量值。 |
Add(T, KeyValuePair<String,Object>) |
記錄度量的增量值。 |
Add(T, KeyValuePair<String,Object>[]) |
記錄度量的增量值。 |
Add(T, TagList) |
加入度量的遞增值。 |
Add(T, ReadOnlySpan<KeyValuePair<String,Object>>) |
記錄度量的增量值。 |
Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>) |
記錄度量的增量值。 |
Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>) |
記錄度量的增量值。 |
Add(T)
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
記錄度量的增量值。
public:
void Add(T delta);
public void Add (T delta);
member this.Add : 'T -> unit
Public Sub Add (delta As T)
參數
- delta
- T
增量度量。
適用於
Add(T, KeyValuePair<String,Object>)
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
記錄度量的增量值。
public:
void Add(T delta, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag);
public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag);
member this.Add : 'T * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (delta As T, tag As KeyValuePair(Of String, Object))
參數
- delta
- T
增量度量。
- tag
- KeyValuePair<String,Object>
與度量相關聯的索引鍵/值組標記。
適用於
Add(T, KeyValuePair<String,Object>[])
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
記錄度量的增量值。
public:
void Add(T delta, ... cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ tags);
public void Add (T delta, params System.Collections.Generic.KeyValuePair<string,object>[] tags);
member this.Add : 'T * System.Collections.Generic.KeyValuePair<string, obj>[] -> unit
Public Sub Add (delta As T, ParamArray tags As KeyValuePair(Of String, Object)())
參數
- delta
- T
增量度量。
- tags
- KeyValuePair<String,Object>[]
與度量相關聯的索引鍵/值組標記清單。
適用於
Add(T, TagList)
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
加入度量的遞增值。
public:
void Add(T delta, System::Diagnostics::TagList % tagList);
public void Add (T delta, in System.Diagnostics.TagList tagList);
member this.Add : 'T * TagList -> unit
Public Sub Add (delta As T, ByRef tagList As TagList)
參數
- delta
- T
度量值。
- tagList
- TagList
與度量相關聯的標記。
適用於
Add(T, ReadOnlySpan<KeyValuePair<String,Object>>)
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
記錄度量的增量值。
public:
void Add(T delta, ReadOnlySpan<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> tags);
public void Add (T delta, ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
public void Add (T delta, scoped ReadOnlySpan<System.Collections.Generic.KeyValuePair<string,object?>> tags);
member this.Add : 'T * ReadOnlySpan<System.Collections.Generic.KeyValuePair<string, obj>> -> unit
Public Sub Add (delta As T, tags As ReadOnlySpan(Of KeyValuePair(Of String, Object)))
參數
- delta
- T
增量度量。
- tags
- ReadOnlySpan<KeyValuePair<String,Object>>
與度量相關聯的索引鍵/值組標記範圍。
適用於
Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>)
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
記錄度量的增量值。
public:
void Add(T delta, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag1, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag2);
public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2);
member this.Add : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (delta As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object))
參數
- delta
- T
增量度量。
- tag1
- KeyValuePair<String,Object>
與度量相關聯的第一個索引鍵/值組標記。
- tag2
- KeyValuePair<String,Object>
與度量相關聯的第二個索引鍵/值組標記。
適用於
Add(T, KeyValuePair<String,Object>, KeyValuePair<String,Object>, KeyValuePair<String,Object>)
- 來源:
- Counter.cs
- 來源:
- Counter.cs
- 來源:
- Counter.cs
記錄度量的增量值。
public:
void Add(T delta, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag1, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag2, System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> tag3);
public void Add (T delta, System.Collections.Generic.KeyValuePair<string,object?> tag1, System.Collections.Generic.KeyValuePair<string,object?> tag2, System.Collections.Generic.KeyValuePair<string,object?> tag3);
member this.Add : 'T * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> * System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (delta As T, tag1 As KeyValuePair(Of String, Object), tag2 As KeyValuePair(Of String, Object), tag3 As KeyValuePair(Of String, Object))
參數
- delta
- T
增量度量。
- tag1
- KeyValuePair<String,Object>
與度量相關聯的第一個索引鍵/值組標記。
- tag2
- KeyValuePair<String,Object>
與度量相關聯的第二個索引鍵/值組標記。
- tag3
- KeyValuePair<String,Object>
與度量相關聯的第三個索引鍵/值組標記。