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

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
)

Parameters

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

.NET for Windows Phone apps

Supported in: Windows Phone 8.1
Show:
© 2015 Microsoft