System.Runtime.InteropServices.Marshal.CreateAggregatedObject Method

Aggregates a managed object with the specified COM object.

Syntax

public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o)

Parameters

pOuter
The outer IUnknown pointer.
o
An object to aggregate.

Returns

The inner IUnknown pointer of the managed object.

Remarks

The Marshal.CreateAggregatedObject(IntPtr, object) method aggregates the inner managed pointer of a managed object with the specified outer pointer, and then returns an inner tp://go.microsoft.com/fwlink/?LinkId=148003 pointer of the managed object.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0