EventListener.OnEventSourceCreated(EventSource) 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 for all existing event sources when the event listener is created and when a new event source is attached to the listener.
protected public:
virtual void OnEventSourceCreated(System::Diagnostics::Tracing::EventSource ^ eventSource);
protected internal virtual void OnEventSourceCreated (System.Diagnostics.Tracing.EventSource eventSource);
abstract member OnEventSourceCreated : System.Diagnostics.Tracing.EventSource -> unit
override this.OnEventSourceCreated : System.Diagnostics.Tracing.EventSource -> unit
Protected Friend Overridable Sub OnEventSourceCreated (eventSource As EventSource)
Parameters
- eventSource
- EventSource
The event source.
Remarks
Event source implementations should be aware that these callbacks are issued for existing event sources when the event listener is instantiated.
In a multithreaded environment, it is possible for OnEventWritten callbacks to occur before the OnEventSourceCreated callback.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για