How to: Add a Parameter to a Method
You can add a parameter to a method using the Class Details window.
Note
To add a parameter to a delegate, see How to: Create a Member.
Note
Although a destructor is a method, it cannot have parameters.
To add a parameter to a method
On the diagram surface, click the type containing the method to which you want to add a parameter.
The type obtains focus and its contents display in the Class Details window.
In the Class Details window, expand the row of the method to which you want to add a parameter.
An indented parameter row appears, containing only a pair of parentheses and the words <add parameter>.
Click <add parameter>, type the name of the new parameter, and press Enter.
The new parameter is added to the method and the method’s code. It displays in the Class Details window and the Properties window.
Optionally, specify other details about the parameter, such as its type.