संपादित करें

इसके माध्यम से साझा किया गया


MeasurementCallback<T> Delegate

Definition

A delegate to represent the Meterlistener callbacks that are used when recording measurements.

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)

Type Parameters

T

The type that the measurement represents.

Parameters

instrument
Instrument

The instrument that sent the measurement.

measurement
T

The measurement value.

tags
ReadOnlySpan<KeyValuePair<String,Object>>

A span of key-value pair tags associated with the measurement.

state
Object

The state object originally passed to EnableMeasurementEvents(Instrument, Object) method.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to