Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Renders the specified view context by using the specified writer for rendering the view to the response.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Overridable Sub Render ( _
viewContext As ViewContext, _
writer As TextWriter _
)
public virtual void Render(
ViewContext viewContext,
TextWriter writer
)
public:
virtual void Render(
ViewContext^ viewContext,
TextWriter^ writer
)
Parameters
- viewContext
Type: System.Web.Mvc.ViewContext
The view context.
- writer
Type: System.IO.TextWriter
The writer that is used to render the view to the response.
Implements
IView.Render(ViewContext, TextWriter)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The viewContext parameter is null reference (Nothing in Visual Basic) (Nothing in Visual Basic). |
InvalidOperationException | An error occurred while attempting to render the view. |