Marshal.CreateAggregatedObject Método

Definición

Sobrecargas

CreateAggregatedObject(IntPtr, Object)
Obsoletos.

Agrega un objeto administrado al objeto COM especificado.

CreateAggregatedObject<T>(IntPtr, T)

Agrega un objeto administrado del tipo especificado con el objeto COM especificado.

CreateAggregatedObject(IntPtr, Object)

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

Precaución

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

Agrega un objeto administrado al objeto COM especificado.

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

Parámetros

pOuter
IntPtr

nativeint

Puntero IUnknown externo.

o
Object

Objeto que se va a agregar.

Devoluciones

IntPtr

nativeint

Puntero IUnknown interno del objeto administrado.

Atributos

Excepciones

oes un objeto Windows Runtime.

Comentarios

El CreateAggregatedObject método agrega el puntero administrado interno de un objeto administrado con el puntero externo especificado y, a continuación, devuelve un puntero IUnknown interno del objeto administrado.

Se aplica a

CreateAggregatedObject<T>(IntPtr, T)

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

Agrega un objeto administrado del tipo especificado con el objeto COM especificado.

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

Parámetros de tipo

T

Tipo del objeto administrado que se va a agregar.

Parámetros

pOuter
IntPtr

nativeint

El puntero externo IUnknown.

o
T

Objeto administrado que se va a agregar.

Devoluciones

IntPtr

nativeint

El puntero interno IUnknown del objeto administrado.

Atributos

Excepciones

oes un objeto Windows Runtime.

Comentarios

El CreateAggregatedObject método agrega el puntero administrado interno de un objeto administrado de un tipo especificado con el puntero externo especificado y devuelve un puntero IUnknown interno del objeto administrado.

Se aplica a