Marshal.CreateAggregatedObject Metodo

Definizione

Overload

CreateAggregatedObject(IntPtr, Object)
Obsoleti.

Aggrega un oggetto gestito all'oggetto COM specificato.

CreateAggregatedObject<T>(IntPtr, T)

Aggrega un oggetto gestito del tipo specificato con l'oggetto COM specificato.

CreateAggregatedObject(IntPtr, Object)

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

Attenzione

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

Aggrega un oggetto gestito all'oggetto COM specificato.

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

Parametri

pOuter
IntPtr

nativeint

Puntatore IUnknown esterno.

o
Object

Oggetto da aggregare.

Restituisce

IntPtr

nativeint

Puntatore IUnknown interno dell'oggetto gestito.

Attributi

Eccezioni

oè un oggetto Windows Runtime.

Commenti

Il metodo CreateAggregatedObject aggrega il puntatore gestito interno di un oggetto gestito con il puntatore esterno specificato e quindi restituisce un puntatore IUnknown interno dell'oggetto gestito.

Si applica a

CreateAggregatedObject<T>(IntPtr, T)

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

Aggrega un oggetto gestito del tipo specificato con l'oggetto COM specificato.

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

Parametri di tipo

T

Tipo dell'oggetto gestito da aggregare.

Parametri

pOuter
IntPtr

nativeint

Puntatore IUnknown esterno.

o
T

Oggetto gestito da aggregare.

Restituisce

IntPtr

nativeint

Puntatore IUnknown interno dell'oggetto gestito.

Attributi

Eccezioni

oè un oggetto Windows Runtime.

Commenti

Il CreateAggregatedObject metodo aggrega il puntatore gestito interno di un oggetto gestito di un tipo specificato con il puntatore esterno specificato e restituisce un puntatore IUnknown interno dell'oggetto gestito.

Si applica a