Método Marshal.CreateAggregatedObject (IntPtr, 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.
Agrega um objeto gerenciado com o objeto COM especificado.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (em mscorlib.dll)
Sintaxe
[SecurityCriticalAttribute]
public static IntPtr CreateAggregatedObject(
IntPtr pOuter,
object o
)
public:
[SecurityCriticalAttribute]
static IntPtr CreateAggregatedObject(
IntPtr pOuter,
Object^ o
)
[<SecurityCriticalAttribute>]
static member CreateAggregatedObject :
pOuter:nativeint *
o:Object -> nativeint
<SecurityCriticalAttribute>
Public Shared Function CreateAggregatedObject (
pOuter As IntPtr,
o As Object
) As IntPtr
Parâmetros
pOuter
Type: System.IntPtrO ponteiro IUnknown externo.
o
Type: System.ObjectUm objeto a agregar.
Valor Retornado
Type: System.IntPtr
O ponteiro IUnknown interno do objeto gerenciado.
Exceções
Exception | Condition |
---|---|
ArgumentException | o é um objeto Tempo de Execução do Windows. |
Comentários
O CreateAggregatedObject método agrega o ponteiro gerenciado interno de um objeto gerenciado com o ponteiro de externo especificado e retorna uma interna IUnknown ponteiro do objeto gerenciado.
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
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
CreateAggregatedObject Sobrecarga
Classe Marshal
Namespace System.Runtime.InteropServices
Retornar ao início