ObjectCreationDelegate Delegado

Definición

Crea un objeto COM.

public delegate IntPtr ObjectCreationDelegate(IntPtr aggregator);
public delegate IntPtr ObjectCreationDelegate(IntPtr aggregator);
[System.Runtime.InteropServices.ComVisible(true)]
public delegate IntPtr ObjectCreationDelegate(IntPtr aggregator);
type ObjectCreationDelegate = delegate of nativeint -> nativeint
[<System.Runtime.InteropServices.ComVisible(true)>]
type ObjectCreationDelegate = delegate of nativeint -> nativeint
Public Delegate Function ObjectCreationDelegate(aggregator As IntPtr) As IntPtr 

Parámetros

aggregator
IntPtr

nativeint

Puntero a la interfaz IUnknown del objeto administrado.

Valor devuelto

IntPtr

nativeint

Un objeto IntPtr representa la interfaz IUnknown del objeto COM.

Atributos

Comentarios

Se llama a este delegado para crear un objeto COM como alternativa a CoCreateInstance cuando un objeto administrado necesita crear una nueva instancia de su parte no administrada. La IUnknown interfaz del objeto administrado se pasa como un parámetro y el delegado debe devolver la IUnknown interfaz del objeto no administrado. Ambas interfaces se pasan como tipo IntPtr para evitar serializar.

Cada clase derivada de Delegate y MulticastDelegate tiene un constructor y un Invoke método.

Métodos de extensión

GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.

Se aplica a