WebFormView.Render Method

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 _
)
'Usage
Dim instance As WebFormView
Dim viewContext As ViewContext
Dim writer As TextWriter

instance.Render(viewContext, writer)
public virtual void Render(
    ViewContext viewContext,
    TextWriter writer
)
public:
virtual void Render(
    ViewContext^ viewContext, 
    TextWriter^ writer
)

Parameters

Implements

IView.Render(ViewContext, TextWriter)

Exceptions

Exception Condition
ArgumentNullException

The viewContext parameter is nulla null reference (Nothing in Visual Basic) (Nothing in Visual Basic).

InvalidOperationException

An error occurred while attempting to render the view.

See Also

Reference

WebFormView Class

WebFormView Members

System.Web.Mvc Namespace