Creates a Delegate to represent the specified target Object and the specified method.
[Visual Basic] Overloads Protected Sub New( _ ByVal target As Object, _ ByVal method As String _ ) [C#] protected Delegate( object target, string method ); [C++] protected: Delegate( Object* target, String* method ); [JScript] protected function Delegate( target : Object, 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 the class created by the compiler generated code. (?)
Delegate Class | Delegate Members | System Namespace | Delegate Constructor Overload List | Object | String