This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
.NET Framework Class Library
Controller..::.View Method
Creates a ViewResult object that renders a view to the response.

Overload List

Remarks
The View()()() and View(Object) method overloads return a ViewResult object with an empty ViewName property. If you are writing unit tests for controller actions, take into account the empty ViewName property for unit tests that do not take a string view name or a parameter of type IView.
At run time, if the ViewName property is empty, the current action name is used in place of the ViewName property.

See Also