Marshal.CreateAggregatedObject Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| CreateAggregatedObject(IntPtr, Object) |
Obsoleto.
Agrega um objeto gerido com o objeto COM especificado. |
| CreateAggregatedObject<T>(IntPtr, T) |
Agrega um objeto gerido do tipo especificado com o objeto COM especificado. |
CreateAggregatedObject(IntPtr, Object)
Atenção
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 um objeto gerido com o 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);
public static IntPtr CreateAggregatedObject(IntPtr pOuter, object o);
[System.Security.SecurityCritical]
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
static member CreateAggregatedObject : nativeint * obj -> nativeint
[<System.Security.SecurityCritical>]
static member CreateAggregatedObject : nativeint * obj -> nativeint
Public Shared Function CreateAggregatedObject (pOuter As IntPtr, o As Object) As IntPtr
Parâmetros
- pOuter
-
IntPtr
nativeint
O ponteiro exterior IUnknown .
- o
- Object
Um objeto para agregar.
Devoluções
nativeint
O ponteiro interior IUnknown do objeto gerido.
- Atributos
Exceções
o é um objeto Windows Runtime.
Observações
O CreateAggregatedObject método agrega o ponteiro interno gerido de um objeto gerido com o ponteiro externo especificado e depois devolve um ponteiro interno IUnknown do objeto gerido.
Aplica-se a
CreateAggregatedObject<T>(IntPtr, T)
Agrega um objeto gerido do tipo especificado com o 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);
public static IntPtr CreateAggregatedObject<T>(IntPtr pOuter, T o);
[<System.Security.SecurityCritical>]
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 Genérico
- T
O tipo do objeto gerido a agregar.
Parâmetros
- pOuter
-
IntPtr
nativeint
O ponteiro externo da IUnknown .
- o
- T
O objeto gerido para agregar.
Devoluções
nativeint
O ponteiro interno IUnknown do objeto gerido.
- Atributos
Exceções
o é um objeto Windows Runtime.
Observações
O CreateAggregatedObject método agrega o ponteiro gerido interno de um objeto gerido de um tipo especificado com o ponteiro externo especificado, e devolve um ponteiro IUnknown interno do objeto gerido.