Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EventListener Methods

.NET Framework 4.6 and 4.5

The EventListener type exposes the following members.

  Name Description
Public method DisableEvents Disables all events for the specified event source.
Public method Dispose Releases the resources used by the current instance of the EventListener class.
Public method EnableEvents(EventSource, EventLevel) Enables events for the specified event source that has the specified verbosity level or lower.
Public method EnableEvents(EventSource, EventLevel, EventKeywords) Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.
Public method EnableEvents(EventSource, EventLevel, EventKeywords, IDictionary<String, String>) Enables events for the specified event source that has the specified verbosity level or lower, matching event keyword flag, and matching arguments.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Static member EventSourceIndex Gets a small non-negative number that represents the specified event source.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnEventSourceCreated Called for all existing event sources when the event listener is created and when a new event source is attached to the listener.
Protected method OnEventWritten Called whenever an event has been written by an event source for which the event listener has enabled events.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2015 Microsoft