Share via


Remove Parameters Dialog Box

Use this dialog box to identify the parameters to remove during the Remove Parameters refactoring operation.

UI Element

Description

Parameters

Lists the parameters you can remove from the method.

Remove

Marks the selected parameter for removal.

Restore

Restores the selected parameter. The parameter will not be removed.

Preview method signature

Displays the new method signature with the removed parameter.

Preview reference changes

Specifies to show the Preview Changes — Remove parameters dialog box when the check box is selected.

Remarks

If a parameter being removed is modified during the call to a method, the removal of the parameter will also remove the modification. For example, consider the following method call:

    MyMethod(param1++, param2);

Suppose that a refactoring operation changed the method call as in the following example:

    MyMethod(param2);

In this case, param1 will not be incremented. Previewing reference changes is recommended.

See Also

Tasks

How to: Remove Parameters

Reference

Remove Parameters

Preview Changes Dialog Box