C# Class Sage.Views.Meta.JsonView

Provides a JSON meta view of a view's input data.
Inheritance: MetaView
Show file Open project: igorfrance/sage

Public Methods

Method Description
JsonView ( MetaViewInfo viewInfo, IView wrapped ) : System

Initializes a new instance of the JsonView class.

Render ( System.Web.Mvc.ViewContext viewContext, TextWriter writer ) : void

Renders the meta view of the view associated with the specified viewContext and writer.

Method Details

JsonView() public method

Initializes a new instance of the JsonView class.
public JsonView ( MetaViewInfo viewInfo, IView wrapped ) : System
viewInfo Sage.Configuration.MetaViewInfo The meta view associated with this view.
wrapped IView The actual view that this meta view wraps.
return System

Render() public method

Renders the meta view of the view associated with the specified viewContext and writer.
public Render ( System.Web.Mvc.ViewContext viewContext, TextWriter writer ) : void
viewContext System.Web.Mvc.ViewContext The view context.
writer System.IO.TextWriter The writer to write to.
return void