Método Marshal.GetTypeForITypeInfo (IntPtr)
Dica
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.
Converte um objeto ITypeInfo não gerenciado em um objeto gerenciado System.Type.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (em mscorlib.dll)
Sintaxe
[SecurityCriticalAttribute]
public static Type GetTypeForITypeInfo(
IntPtr piTypeInfo
)
public:
[SecurityCriticalAttribute]
static Type^ GetTypeForITypeInfo(
IntPtr piTypeInfo
)
[<SecurityCriticalAttribute>]
static member GetTypeForITypeInfo :
piTypeInfo:nativeint -> Type
<SecurityCriticalAttribute>
Public Shared Function GetTypeForITypeInfo (
piTypeInfo As IntPtr
) As Type
Parâmetros
piTypeInfo
Type: System.IntPtrA interface ITypeInfo para realizar marshaling.
Valor Retornado
Type: System.Type
Um tipo gerenciado que representa o objeto ITypeInfo não gerenciado.
Comentários
GetTypeForITypeInfoRetorna um System.Type instância com base no tipo original. Você pode aplicar o System.Runtime.InteropServices.MarshalAsAttribute para substituir o comportamento de marshaling de interoperabilidade padrão com este marshaler personalizado. O Tlbimp.exe (Importador de Biblioteca de Tipos) ferramenta usa o marshaler personalizado para traduzir ITypeInfo parâmetros System.Type parâmetros. No entanto, se você obtiver um ITypeInfo interface por alguns outros meios que Tlbimp.exe, você pode usar GetTypeForITypeInfo para executar manualmente a mesma conversão.
Segurança
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Informações de Versão
.NET Framework
Disponível desde 1.1
Confira Também
GetITypeInfoForType
MarshalAsAttribute
Classe Marshal
Namespace System.Runtime.InteropServices
Retornar ao início