MethodInfo.CreateDelegate 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.
Cria um delegado a partir deste método.
Sobrecargas
| Name | Description |
|---|---|
| CreateDelegate(Type) |
Cria um delegado do tipo especificado a partir deste método. |
| CreateDelegate(Type, Object) |
Cria um delegado do tipo especificado com o alvo especificado a partir deste método. |
CreateDelegate(Type)
Cria um delegado do tipo especificado a partir deste método.
public:
virtual Delegate ^ CreateDelegate(Type ^ delegateType);
public virtual Delegate CreateDelegate(Type delegateType);
abstract member CreateDelegate : Type -> Delegate
override this.CreateDelegate : Type -> Delegate
Public Overridable Function CreateDelegate (delegateType As Type) As Delegate
Parâmetros
- delegateType
- Type
O tipo de delegado a criar.
Devoluções
O delegado para este método.
Aplica-se a
CreateDelegate(Type, Object)
Cria um delegado do tipo especificado com o alvo especificado a partir deste método.
public:
virtual Delegate ^ CreateDelegate(Type ^ delegateType, System::Object ^ target);
public virtual Delegate CreateDelegate(Type delegateType, object target);
abstract member CreateDelegate : Type * obj -> Delegate
override this.CreateDelegate : Type * obj -> Delegate
Public Overridable Function CreateDelegate (delegateType As Type, target As Object) As Delegate
Parâmetros
- delegateType
- Type
O tipo de delegado a criar.
- target
- Object
O objeto alvo do delegado.
Devoluções
O delegado para este método.