IMetricsListener.InstrumentPublished(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.
Called when a new instrument is created and enabled by a matching rule.
public:
bool InstrumentPublished(System::Diagnostics::Metrics::Instrument ^ instrument, [Runtime::InteropServices::Out] System::Object ^ % userState);
public bool InstrumentPublished (System.Diagnostics.Metrics.Instrument instrument, out object? userState);
abstract member InstrumentPublished : System.Diagnostics.Metrics.Instrument * obj -> bool
Public Function InstrumentPublished (instrument As Instrument, ByRef userState As Object) As Boolean
Parameters
- instrument
- Instrument
The new Instrument.
- userState
- Object
Listener state associated with this instrument. This will be returned to MeasurementCallback<T> and MeasurementsCompleted(Instrument, Object).
Returns
Returns true if the listener wants to subscribe to this instrument, otherwise false.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET