Επεξεργασία

Κοινή χρήση μέσω


Marshal.CreateAggregatedObject Method

Definition

Overloads

CreateAggregatedObject(IntPtr, Object)
Obsolete.

Aggregates a managed object with the specified COM object.

CreateAggregatedObject<T>(IntPtr, T)

Aggregates a managed object of the specified type with the specified COM object.

CreateAggregatedObject(IntPtr, Object)

Source:
Marshal.NoCom.cs
Source:
Marshal.NoCom.cs
Source:
Marshal.NoCom.cs

Caution

CreateAggregatedObject(IntPtr, Object) may be unavailable in future releases. Instead, use CreateAggregatedObject<T>(IntPtr, T). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296518

Aggregates a managed object with the specified COM object.

public:
 static IntPtr CreateAggregatedObject(IntPtr pOuter, System::Object ^ o);
[System.Obsolete("CreateAggregatedObject(IntPtr, Object) may be unavailable in future releases. Instead, use CreateAggregatedObject<T>(IntPtr, T). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296518")]
[System.Security.SecurityCritical]
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
[System.Security.SecurityCritical]
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
public static IntPtr CreateAggregatedObject (IntPtr pOuter, object o);
[<System.Obsolete("CreateAggregatedObject(IntPtr, Object) may be unavailable in future releases. Instead, use CreateAggregatedObject<T>(IntPtr, T). For more info, go to http://go.microsoft.com/fwlink/?LinkID=296518")>]
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
static member CreateAggregatedObject : nativeint * obj -> nativeint
Public Shared Function CreateAggregatedObject (pOuter As IntPtr, o As Object) As IntPtr

Parameters

pOuter
IntPtr

nativeint

The outer IUnknown pointer.

o
Object

An object to aggregate.

Returns

IntPtr

nativeint

The inner IUnknown pointer of the managed object.

Attributes

Exceptions

o is a Windows Runtime object.

Remarks

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.

Applies to

CreateAggregatedObject<T>(IntPtr, T)

Source:
Marshal.NoCom.cs
Source:
Marshal.NoCom.cs
Source:
Marshal.NoCom.cs

Aggregates a managed object of the specified type with the specified COM object.

public:
generic <typename T>
 static IntPtr CreateAggregatedObject(IntPtr pOuter, T o);
[System.Security.SecurityCritical]
public static IntPtr CreateAggregatedObject<T> (IntPtr pOuter, T o);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static IntPtr CreateAggregatedObject<T> (IntPtr pOuter, T o);
public static IntPtr CreateAggregatedObject<T> (IntPtr pOuter, T o);
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * 'T -> nativeint
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member CreateAggregatedObject : nativeint * 'T -> nativeint
static member CreateAggregatedObject : nativeint * 'T -> nativeint
Public Shared Function CreateAggregatedObject(Of T) (pOuter As IntPtr, o As T) As IntPtr

Type Parameters

T

The type of the managed object to aggregate.

Parameters

pOuter
IntPtr

nativeint

The outer IUnknown pointer.

o
T

The managed object to aggregate.

Returns

IntPtr

nativeint

The inner IUnknown pointer of the managed object.

Attributes

Exceptions

o is a Windows Runtime object.

Remarks

The CreateAggregatedObject method aggregates the inner managed pointer of a managed object of a specified type with the specified outer pointer, and returns an inner IUnknown pointer of the managed object.

Applies to