Freigeben über


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 _
)
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 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

System.Web.Mvc Namespace