ExceptionGetType Method

Gets the runtime type of the current instance.

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

public Type GetType()
virtual Type^ GetType() sealed
abstract GetType : unit -> Type
override GetType : unit -> Type
Public Function GetType As Type

Return Value


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, ObjectGetType.

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