共用方式為


MeasurementCallback<T> 代理人

定義

委派,表示錄制度量時所使用的 Meterlistener 回呼。

generic <typename T>
public delegate void MeasurementCallback(Instrument ^ instrument, T measurement, ReadOnlySpan<KeyValuePair<System::String ^, System::Object ^>> tags, System::Object ^ state);
generic <typename T>
 where T : value classpublic delegate void MeasurementCallback(Instrument ^ instrument, T measurement, ReadOnlySpan<KeyValuePair<System::String ^, System::Object ^>> tags, System::Object ^ state);
public delegate void MeasurementCallback<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string,object?>> tags, object? state);
public delegate void MeasurementCallback<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string,object?>> tags, object? state) where T : struct;
type MeasurementCallback<'T> = delegate of Instrument * 'T * ReadOnlySpan<KeyValuePair<string, obj>> * obj -> unit
type MeasurementCallback<'T (requires 'T : struct)> = delegate of Instrument * 'T * ReadOnlySpan<KeyValuePair<string, obj>> * obj -> unit
Public Delegate Sub MeasurementCallback(Of T)(instrument As Instrument, measurement As T, tags As ReadOnlySpan(Of KeyValuePair(Of String, Object)), state As Object)

類型參數

T

度量所代表的類型。

參數

instrument
Instrument

傳送測量的檢測。

measurement
T

度量值。

tags
ReadOnlySpan<KeyValuePair<String,Object>>

與度量相關聯的索引鍵/值組標記範圍。

state
Object

原本傳遞至 EnableMeasurementEvents(Instrument, Object) 方法的狀態物件。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於