Creates a Delegate to represent the specified target Type and the specified method.
[Visual Basic] Overloads Protected Sub New( _ ByVal target As Type, _ ByVal method As String _ ) [C#] protected Delegate( Type target, string method ); [C++] protected: Delegate( Type* target, String* method ); [JScript] protected function Delegate( target : Type, method : String );
Exception Type | Condition |
---|---|
ArgumentNullException | target is a null reference (in Visual Basic Nothing).
-or- method is a null reference (Nothing). |
This constructor is called from a class to generate a delegate based upon a static method name and the Type object for the class defining the method. (?)
Delegate Class | Delegate Members | System Namespace | Delegate Constructor Overload List | Type | String