EventSource Methods

.NET Framework 4.5

The EventSource type exposes the following members.

  Name Description
Public method Dispose() Releases all resources used by the current instance of the EventSource class.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the EventSource class and optionally releases the managed resources.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows the EventSource object to attempt to free resources and perform other cleanup operations before the object is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public method Static member GenerateManifest Returns a string of the XML manifest that is associated with the current event source.
Public method Static member GetGuid Gets the unique identifier for this implementation of the event source.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method Static member GetName Gets the friendly name of the event source.
Public method Static member GetSources Gets a snapshot of all the event sources for the application domain.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsEnabled() Determines whether the current event source is enabled.
Public method IsEnabled(EventLevel, EventKeywords) Determines whether the current event source that has the specified level and keyword is enabled.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnEventCommand Called when the current event source is updated by the controller.
Public method Static member SendCommand Sends a command to a specified event source.
Public method Static member SetCurrentThreadActivityId(Guid) [Supported in the .NET Framework 4.5.1 and later versions] Sets the activity ID on the current thread.
Public method Static member SetCurrentThreadActivityId(Guid, Guid) [Supported in the .NET Framework 4.5.1 and later versions] Sets the activity ID on the current thread, and returns the previous activity ID.
Public method ToString Obtains a string representation of the current event source instance. (Overrides Object.ToString().)
Protected method WriteEvent(Int32) Writes an event by using the provided event identifier.
Protected method WriteEvent(Int32, Int32) Writes an event by using the provided event identifier and 32-bit integer argument.
Protected method WriteEvent(Int32, Int64) Writes an event by using the provided event identifier and 64-bit integer argument.
Protected method WriteEvent(Int32, Object[]) Writes an event by using the provided event identifier and array of arguments.
Protected method WriteEvent(Int32, String) Writes an event by using the provided event identifier and string argument.
Protected method WriteEvent(Int32, Int32, Int32) Writes an event by using the provided event identifier and 32-bit integer arguments.
Protected method WriteEvent(Int32, Int64, Int64) Writes an event by using the provided event identifier and 64-bit arguments.
Protected method WriteEvent(Int32, String, Int32) Writes an event by using the provided event identifier and arguments.
Protected method WriteEvent(Int32, String, Int64) Writes an event by using the provided event identifier and arguments.
Protected method WriteEvent(Int32, String, String) Writes an event by using the provided event identifier and string arguments.
Protected method WriteEvent(Int32, Int32, Int32, Int32) Writes an event by using the provided event identifier and 32-bit integer arguments.
Protected method WriteEvent(Int32, Int64, Int64, Int64) Writes an event by using the provided event identifier and 64-bit arguments.
Protected method WriteEvent(Int32, String, Int32, Int32) Writes an event by using the provided event identifier and arguments.
Protected method WriteEvent(Int32, String, String, String) Writes an event by using the provided event identifier and string arguments.
Protected method WriteEventCore Creates a new WriteEvent overload by using the provided event identifier and event data.
Protected method WriteEventWithRelatedActivityId [Supported in the .NET Framework 4.5.1 and later versions] Writes an event that indicates that the current activity is related to another activity.
Protected method WriteEventWithRelatedActivityIdCore [Supported in the .NET Framework 4.5.1 and later versions] Writes an event that indicates that the current activity is related to another activity.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft