Exception.GetType Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the runtime type of the current instance.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public Type GetType()

Return Value

Type: System.Type

A Type object that represents the exact runtime type of the current instance.

The GetType method exists to support the .NET Framework infrastructure, and internally invokes the fundamental method, Object.GetType.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: