The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Marshal::CreateAggregatedObject Method (IntPtr, Object^)
.NET Framework (current version)
Aggregates a managed object with the specified COM object.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] static IntPtr CreateAggregatedObject( IntPtr pOuter, Object^ o )
Parameters
- pOuter
-
Type:
System::IntPtr
The outer IUnknown pointer.
- o
-
Type:
System::Object^
An object to aggregate.
| Exception | Condition |
|---|---|
| ArgumentException | o is a Windows Runtime object. |
The CreateAggregatedObject method aggregates the inner managed pointer of a managed object with the specified outer pointer, and then returns an inner IUnknown pointer of the managed object.
SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: