Marshal.CreateAggregatedObject(Of T) Method (IntPtr, T)
[Supported in the .NET Framework 4.5.1 and later versions]
Aggregates a managed object of the specified type with the specified COM object.
Assemblies: System.Runtime.InteropServices (in System.Runtime.InteropServices.dll)
mscorlib (in mscorlib.dll)
'Declaration Public Shared Function CreateAggregatedObject(Of T) ( _ pOuter As IntPtr, _ o As T _ ) As IntPtr
The type of the managed object to aggregate.
The managed object to aggregate.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.