Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TypeName Property
Collapse the table of content
Expand the table of content

TypeLoadException.TypeName Property

Gets the fully qualified name of the type that causes the exception.

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

member TypeName : string with get

Property Value

Type: System.String
The fully qualified type name.

Notes to Inheritors

When overriding TypeName in a derived class, be sure to call the base class's TypeName property.

This property is read-only.

The following example attempts to load a non-existent type from the mscorlib assembly. The resulting exception is caught, and the TypeName and Message values are displayed. For this code example to run, you must provide the fully qualified assembly name. For information about how to obtain the fully qualified assembly name, see Assembly Names.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft