MethodInfo.CreateDelegate Metodo
Definizione
Crea un delegato da questo metodo.Creates a delegate from this method.
Overload
CreateDelegate(Type) |
Crea un delegato del tipo specificato da questo metodo.Creates a delegate of the specified type from this method. |
CreateDelegate(Type, Object) |
Crea un delegato del tipo specificato con la destinazione specificata da questo metodo.Creates a delegate of the specified type with the specified target from this method. |
CreateDelegate<T>() |
Crea un delegato di tipo |
CreateDelegate<T>(Object) |
Crea un delegato di tipo |
CreateDelegate(Type)
Crea un delegato del tipo specificato da questo metodo.Creates a delegate of the specified type from this method.
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
Parametri
- delegateType
- Type
Tipo del delegato da creare.The type of the delegate to create.
Restituisce
Delegato per questo metodo.The delegate for this method.
Si applica a
CreateDelegate(Type, Object)
Crea un delegato del tipo specificato con la destinazione specificata da questo metodo.Creates a delegate of the specified type with the specified target from this method.
public:
virtual Delegate ^ CreateDelegate(Type ^ delegateType, System::Object ^ target);
public virtual Delegate CreateDelegate (Type delegateType, 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
Parametri
- delegateType
- Type
Tipo del delegato da creare.The type of the delegate to create.
- target
- Object
Oggetto impostato come destinazione dal delegato.The object targeted by the delegate.
Restituisce
Delegato per questo metodo.The delegate for this method.
Si applica a
CreateDelegate<T>()
Crea un delegato di tipo T
da questo metodo.Creates a delegate of type T
from this method.
public:
generic <typename T>
where T : Delegate T CreateDelegate();
public T CreateDelegate<T> () where T : Delegate;
member this.CreateDelegate : unit -> 'T (requires 'T :> Delegate)
Public Function CreateDelegate(Of T As Delegate) () As T
Parametri di tipo
- T
Tipo del delegato da creare.The type of the delegate to create.
Restituisce
- T
Delegato per questo metodo.The delegate for this method.
Si applica a
CreateDelegate<T>(Object)
Crea un delegato di tipo T
con la destinazione specificata da questo metodo.Creates a delegate of type T
with the specified target from this method.
public:
generic <typename T>
where T : Delegate T CreateDelegate(System::Object ^ target);
public T CreateDelegate<T> (object? target) where T : Delegate;
member this.CreateDelegate : obj -> 'T (requires 'T :> Delegate)
Public Function CreateDelegate(Of T As Delegate) (target As Object) As T
Parametri di tipo
- T
Tipo del delegato da creare.The type of the delegate to create.
Parametri
- target
- Object
Oggetto impostato come destinazione dal delegato.The object targeted by the delegate.
Restituisce
- T
Delegato per questo metodo.The delegate for this method.