Marshal::GetTypeInfoName Method (UCOMITypeInfo^)

 
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.

Note: This API is now obsolete.

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

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

public:
[SecurityCriticalAttribute]
[ObsoleteAttribute("Use System.Runtime.InteropServices.Marshal.GetTypeInfoName(ITypeInfo pTLB) instead. http://go.microsoft.com/fwlink/?linkid=14202&ID=0000011.", 
	false)]
static String^ GetTypeInfoName(
	UCOMITypeInfo^ pTI
)

Parameters

pTI
Type: System.Runtime.InteropServices::UCOMITypeInfo^

An object that represents an ITypeInfo pointer.

Return Value

Type: System::String^

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

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

SecurityCriticalAttribute

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

.NET Framework
Available since 1.1
Return to top
Show: