MeasurementCallback<T> 代理人

定義

測定を記録するときに使用される Meterlistener コールバックを表すデリゲート。

generic <typename T>
public 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);
type MeasurementCallback<'T> = 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)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象