Marshal::GetTypeInfoName Method (ITypeInfo^)


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

Retrieves the name of the type represented by an ITypeInfo object.

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

static String^ GetTypeInfoName(
	ITypeInfo^ typeInfo


Type: System.Runtime.InteropServices.ComTypes::ITypeInfo^

An object that represents an ITypeInfo pointer.

Return Value

Type: System::String^

The name of the type that the typeInfo parameter points to.

Exception Condition

The typeInfo parameter is null.

You can also retrieve the name of the type represented by an ITypeInfo by calling the UCOMITypeInfo::GetDocumentation method and passing -1 for its first parameter.


requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top