Compartir a través de


Método Marshal.GetTypeInfoName (ITypeInfo)

 

Publicado: octubre de 2016

Recupera el nombre del tipo representado por un objeto ITypeInfo.

Espacio de nombres:   System.Runtime.InteropServices
Ensamblado:  mscorlib (en mscorlib.dll)

Sintaxis

[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 devuelto

Type: System.String

Nombre del tipo al que apunta el parámetro typeInfo.

Excepciones

Exception Condition
ArgumentNullException

El parámetro typeInfo es null.

Comentarios

También puede recuperar el nombre del tipo representado por un ITypeInfo llamando el UCOMITypeInfo.GetDocumentation método y pasa -1 para su primer parámetro.

Seguridad

SecurityCriticalAttribute

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

Información de versión

Plataforma universal de Windows
Disponible desde 8
.NET Framework
Disponible desde 2.0
Biblioteca de clases portable
Se admite en: plataformas portátiles de .NET
Windows Phone
Disponible desde 8.1

Ver también

GetDocumentation
GetTypeInfoName Sobrecarga
Clase Marshal
Espacio de nombres System.Runtime.InteropServices

Volver al principio