Configuration of an object delegate (Event).
Initializes a new instance of ObjectDelegate.
public Void ObjectDelegate(eventName, objectName, methodName, optional)
Name | Type | Summary |
---|---|---|
eventName | String | The name of the event to hook the method to. |
objectName | String | Name of the object that contains the delegate method. |
methodName | String | The method name that implement the event handler. |
optional | Boolean | Whether the event is considered optional. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when any of the argument are null or empty. |
The name of the event to hook the method to.
public String Event { get; set; }
The method name that implement the event handler.
public String Method { get; set; }
Name of the object that contains the delegate method.
public String Name { get; set; }
Whether the event is considered optional.
public Boolean Optional { get; set; }
Returns a textual representation of the object delegate configuration.
public String ToString()
In this document