IMetricsListener.InstrumentPublished(Instrument, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Appelé lorsqu’un nouvel instrument est créé et activé par une règle correspondante.
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
Paramètres
- instrument
- Instrument
InstrumentNouveau .
- userState
- Object
État de l’écouteur associé à cet instrument. Cela sera retourné à MeasurementCallback<T> et MeasurementsCompleted(Instrument, Object).
Retours
true si l’écouteur souhaite s’abonner à cet instrument, sinon false.