EventSource.GetName Method

.NET Framework 4.6 and 4.5

Gets the friendly name of the event source.

Namespace:  System.Diagnostics.Tracing
Assemblies:   mscorlib (in mscorlib.dll)
  System.Diagnostics.Tracing (in System.Diagnostics.Tracing.dll)

public static string GetName(
	Type eventSourceType


Type: System.Type

The type of the event source.

Return Value

Type: System.String
The friendly name of the event source. The default is the simple name of the class.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft