Marshal.CreateAggregatedObject-Methode: (IntPtr, Object)
Verbindet ein verwaltetes Objekt mit dem angegebenen COM-Objekt.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
[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
Parameter
pOuter
Type: System.IntPtrDer äußere IUnknown-Zeiger.
o
Type: System.ObjectEin zu aggregierendes Objekt.
Rückgabewert
Type: System.IntPtr
Der innere IUnknown-Zeiger des verwalteten Objekts.
Ausnahmen
Exception | Condition |
---|---|
ArgumentException | o ist ein Windows-Runtime-Objekt. |
Hinweise
The M:System.Runtime.InteropServices.Marshal.CreateAggregatedObject(System.IntPtr,System.Object) method aggregates the inner managed pointer of a managed object with the specified outer pointer, and then returns an inner IUnknownhttps://go.microsoft.com/fwlink/?LinkId=148003 pointer of the managed object.
Sicherheit
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Versionsinformationen
Universelle Windows-Plattform
Verfügbar seit 8
.NET Framework
Verfügbar seit 2.0
Portierbare Klassenbibliothek
Unterstützt in: portierbare .NET-Plattformen
Windows Phone
Verfügbar seit 8.1
Siehe auch
CreateAggregatedObject Überladen
Marshal-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang