MeterListener.EnableMeasurementEvents(Instrument, Object) Method
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.
Starts listening to a specific instrument measurement recording.
public void EnableMeasurementEvents (System.Diagnostics.Metrics.Instrument instrument, object? state = default);
member this.EnableMeasurementEvents : System.Diagnostics.Metrics.Instrument * obj -> unit
Public Sub EnableMeasurementEvents (instrument As Instrument, Optional state As Object = Nothing)
Parameters
- instrument
- Instrument
The instrument to listen to.
- state
- Object
A state object that will be passed back to the callback getting measurements events.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.