ObjectCreationDelegate ObjectCreationDelegate ObjectCreationDelegate ObjectCreationDelegate Delegate

Definición

Crea un objeto COM.Creates a COM object.

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

Parámetros

aggregator
IntPtr IntPtr IntPtr IntPtr

Puntero a la interfaz IUnknown del objeto administrado.A pointer to the managed object's IUnknown interface.

Valor devuelto

System.IntPtr

Un objeto IntPtr representa la interfaz IUnknown del objeto COM.An IntPtr object that represents the IUnknown interface of the COM object.

Herencia
ObjectCreationDelegateObjectCreationDelegateObjectCreationDelegateObjectCreationDelegate
Atributos

Comentarios

Este delegado se llama para crear un objeto COM como una alternativa a CoCreateInstance cuando un objeto administrado necesita para crear una nueva instancia de su porción no administrada.This delegate is called to create a COM object as an alternative to CoCreateInstance when a managed object needs to create a new instance of its unmanaged portion. El IUnknown interfaz del objeto administrado se pasa como parámetro y el delegado debe devolver la IUnknown interfaz del objeto no administrado.The IUnknown interface of the managed object is passed as a parameter and the delegate should return the IUnknown interface of the unmanaged object. Ambas interfaces se pasan como un tipo IntPtr para evitar el cálculo de referencias.Both interfaces are passed as type IntPtr to avoid marshaling.

Cada clase derivada de Delegate y MulticastDelegate tiene un constructor y un Invoke método.Every derived class of Delegate and MulticastDelegate has a constructor and an Invoke method.

Métodos de extensión

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a