MethodInfo.CreateDelegate Yöntem

Tanım

Bu yöntemden bir temsilci oluşturur.

Aşırı Yüklemeler

CreateDelegate(Type)

Bu yöntemden belirtilen türde bir temsilci oluşturur.

CreateDelegate(Type, Object)

Bu yöntemden belirtilen hedefle belirtilen türde bir temsilci oluşturur.

CreateDelegate<T>()

Bu yöntemden türünde T bir temsilci oluşturur.

CreateDelegate<T>(Object)

Bu yöntemden belirtilen hedefle türünde T bir temsilci oluşturur.

CreateDelegate(Type)

Bu yöntemden belirtilen türde bir temsilci oluşturur.

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

Parametreler

delegateType
Type

Oluşturulacak temsilcinin türü.

Döndürülenler

Delegate

Bu yöntemin temsilcisi.

Şunlara uygulanır

CreateDelegate(Type, Object)

Bu yöntemden belirtilen hedefle belirtilen türde bir temsilci oluşturur.

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

Parametreler

delegateType
Type

Oluşturulacak temsilcinin türü.

target
Object

Temsilci tarafından hedeflenen nesne.

Döndürülenler

Delegate

Bu yöntemin temsilcisi.

Şunlara uygulanır

CreateDelegate<T>()

Bu yöntemden türünde T bir temsilci oluşturur.

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

Tür Parametreleri

T

Oluşturulacak temsilcinin türü.

Döndürülenler

T

Bu yöntemin temsilcisi.

Şunlara uygulanır

CreateDelegate<T>(Object)

Bu yöntemden belirtilen hedefle türünde T bir temsilci oluşturur.

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

Tür Parametreleri

T

Oluşturulacak temsilcinin türü.

Parametreler

target
Object

Temsilci tarafından hedeflenen nesne.

Döndürülenler

T

Bu yöntemin temsilcisi.

Şunlara uygulanır