Rediger

Del via


MulticastDelegate Constructors

Definition

Initializes a new instance of the MulticastDelegate class.

Overloads

MulticastDelegate(Object, String)

Initializes a new instance of the MulticastDelegate class.

MulticastDelegate(Type, String)

Initializes a new instance of the MulticastDelegate class.

MulticastDelegate(Object, String)

Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs

Initializes a new instance of the MulticastDelegate class.

protected:
 MulticastDelegate(System::Object ^ target, System::String ^ method);
protected MulticastDelegate (object target, string method);
new MulticastDelegate : obj * string -> MulticastDelegate
Protected Sub New (target As Object, method As String)

Parameters

target
Object

The object on which method is defined.

method
String

The name of the method for which a delegate is created.

Exceptions

Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Remarks

This constructor cannot be used in application code. To create a delegate by specifying the name of an instance method, use an overload of the Delegate.CreateDelegate method that specifies a method name and a target object. For example, the Delegate.CreateDelegate(Type, Object, String) method overload creates a delegate for an instance method with a specified name.

Applies to

MulticastDelegate(Type, String)

Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs
Source:
MulticastDelegate.cs

Initializes a new instance of the MulticastDelegate class.

protected:
 MulticastDelegate(Type ^ target, System::String ^ method);
protected MulticastDelegate (Type target, string method);
new MulticastDelegate : Type * string -> MulticastDelegate
Protected Sub New (target As Type, method As String)

Parameters

target
Type

The type of object on which method is defined.

method
String

The name of the static method for which a delegate is created.

Exceptions

Cannot create an instance of an abstract class, or this member was invoked with a late-binding mechanism.

Remarks

This constructor cannot be used in application code. To create a delegate by specifying the name of a static method, use an overload of the Delegate.CreateDelegate method that specifies a method name but does not specify a target object. For example, the Delegate.CreateDelegate(Type, Type, String) method overload creates a static delegate for a method with a specified name.

Applies to