Compartilhar via


Método Marshal.GetTypeInfoName (ITypeInfo)

 

Dica

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

Recupera o nome do tipo representado por um objeto ITypeInfo.

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

Sintaxe

[SecurityCriticalAttribute]
public static string GetTypeInfoName(
    ITypeInfo typeInfo
)
public:
[SecurityCriticalAttribute]
static String^ GetTypeInfoName(
    ITypeInfo^ typeInfo
)
[<SecurityCriticalAttribute>]
static member GetTypeInfoName : 
        typeInfo:ITypeInfo -> string
<SecurityCriticalAttribute>
Public Shared Function GetTypeInfoName (
    typeInfo As ITypeInfo
) As String

Parâmetros

Valor Retornado

Type: System.String

O nome do tipo para o qual o parâmetro typeInfo aponta.

Exceções

Exception Condition
ArgumentNullException

O parâmetro typeInfo é null.

Comentários

Você também pode recuperar o nome do tipo representado por um ITypeInfo chamando o UCOMITypeInfo.GetDocumentation método e passando -1 para o primeiro parâmetro.

Segurança

SecurityCriticalAttribute

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

Informações de Versão

Plataforma Universal do Windows
Disponível desde 8
.NET Framework
Disponível desde 2.0
Biblioteca de Classes Portátil
Com suporte no: plataformas portáteis do .NET
Windows Phone
Disponível desde 8.1

Confira Também

GetDocumentation
GetTypeInfoName Sobrecarga
Classe Marshal
Namespace System.Runtime.InteropServices

Retornar ao início