Método UCOMITypeInfo.CreateInstance (Object, Guid, Object)
Dica
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.
Cria uma nova instância de um tipo que descreve uma classe de componente (coclass).
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (em mscorlib.dll)
Sintaxe
void CreateInstance(
object pUnkOuter,
ref Guid riid,
out object ppvObj
)
void CreateInstance(
Object^ pUnkOuter,
Guid% riid,
[OutAttribute] Object^% ppvObj
)
abstract CreateInstance :
pUnkOuter:Object *
riid:Guid byref *
ppvObj:Object byref -> unit
Sub CreateInstance (
pUnkOuter As Object,
ByRef riid As Guid,
<OutAttribute> ByRef ppvObj As Object
)
Parâmetros
pUnkOuter
Type: System.ObjectObjeto que atua como o IUnknown que controla.
riid
Type: System.GuidO IID da interface que o chamador usará para se comunicar com o objeto resultante.
ppvObj
Type: System.ObjectNo retorno bem-sucedido, uma referência ao objeto criado.
Comentários
Para obter informações adicionais sobre ITypeInfo::CreateInstance, consulte a biblioteca MSDN.
Informações de Versão
.NET Framework
Disponível desde 1.1
Confira Também
Interface UCOMITypeInfo
Namespace System.Runtime.InteropServices
Retornar ao início