Class EventDefinition
- Namespace
- RDCore.Forms.Model
- Assembly
- RDCore.Forms.dll
An event a component class raises: its name and its parameters, as a handler declares them.
public sealed class EventDefinition
- Inheritance
-
EventDefinition
- Inherited Members
Remarks
A component raises an event with the event's name and its arguments. Which procedure handles it, such as Command1_Click
or a WithEvents variable's handler, is for the code that runs the form to decide.
Constructors
EventDefinition(string, params IReadOnlyList<EventParameter>)
Creates an event definition.
public EventDefinition(string name, params IReadOnlyList<EventParameter> parameters)
Parameters
namestringThe event's name.
parametersIReadOnlyList<EventParameter>The event's parameters, in order.
Exceptions
- ArgumentException
nameis empty or white space.
Properties
Name
The event's name.
public string Name { get; }
Property Value
Parameters
The event's parameters, in the order a handler declares them.
public IReadOnlyList<EventParameter> Parameters { get; }
Property Value
Methods
ToString()
The event's name.
public override string ToString()
Returns
- string
The event's name.