ObjectCreationDelegate Delegar

Definição

Cria um 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

Um apontador para a interface do IUnknown objeto gerido.

Devolver Valor

IntPtr

nativeint

Um IntPtr objeto que representa a IUnknown interface do objeto COM.

Atributos

Observações

Este delegado é chamado para criar um objeto COM como alternativa a CoCreateInstance quando um objeto gerido precisa de criar uma nova instância da sua parte não gerida. A IUnknown interface do objeto gerido é passada como um parâmetro e o delegado deve devolver a IUnknown interface do objeto não gerido. Ambas as interfaces são passadas como tipo IntPtr para evitar marshaling.

Cada classe derivada de Delegate e MulticastDelegate tem um construtor e um Invoke método.

Métodos da Extensão

Name Description
GetMethodInfo(Delegate)

Obtém um objeto que representa o método representado pelo delegado especificado.

Aplica-se a