Skip to main content

IRazorView

Assembly: ServiceStack.Razor.dll​
View Source​
Declaration
public interface IRazorView : IDisposable

Properties​

TypedViewBag​

View Source​
Declaration
IViewBag TypedViewBag { get; }

Layout​

View Source​
Declaration
string Layout { get; set; }

ChildPage​

View Source​
Declaration
IRazorView ChildPage { get; }

ParentPage​

View Source​
Declaration
IRazorView ParentPage { get; set; }

Methods​

SetChildPage(IRazorView, String)​

View Source​
Declaration
void SetChildPage(IRazorView childPage, string childBody)
Parameters​
TypeName
ServiceStack.Html.IRazorViewchildPage
System.StringchildBody

Init(IViewEngine, IRequest, IResponse)​

View Source​
Declaration
void Init(IViewEngine viewEngine, IRequest httpReq, IResponse httpRes)
Parameters​
TypeName
ServiceStack.Html.IViewEngineviewEngine
IRequesthttpReq
IResponsehttpRes

WriteTo(StreamWriter)​

View Source​
Declaration
void WriteTo(StreamWriter writer)
Parameters​
TypeName
System.IO.StreamWriterwriter

IsSectionDefined(String)​

View Source​
Declaration
bool IsSectionDefined(string sectionName)
Returns​

System.Boolean

Parameters​
TypeName
System.StringsectionName

RenderChildSection(String, StreamWriter)​

View Source​
Declaration
void RenderChildSection(string sectionName, StreamWriter writer)
Parameters​
TypeName
System.StringsectionName
System.IO.StreamWriterwriter