GetTypeInfoName Method (ITypeInfo)
Collapse the table of content
Expand the table of content

Marshal.GetTypeInfoName Method (ITypeInfo)


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

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

static member GetTypeInfoName : 
        typeInfo:ITypeInfo -> string


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 4.5
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft