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
Type | Name |
---|---|
ServiceStack.Html.IRazorView | childPage |
System.String | childBody |
Init(IViewEngine, IRequest, IResponse)
View Source
Declaration
void Init(IViewEngine viewEngine, IRequest httpReq, IResponse httpRes)
Parameters
Type | Name |
---|---|
ServiceStack.Html.IViewEngine | viewEngine |
IRequest | httpReq |
IResponse | httpRes |
WriteTo(StreamWriter)
View Source
Declaration
void WriteTo(StreamWriter writer)
Parameters
Type | Name |
---|---|
System.IO.StreamWriter | writer |
IsSectionDefined(String)
View Source
Declaration
bool IsSectionDefined(string sectionName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | sectionName |
RenderChildSection(String, StreamWriter)
View Source
Declaration
void RenderChildSection(string sectionName, StreamWriter writer)
Parameters
Type | Name |
---|---|
System.String | sectionName |
System.IO.StreamWriter | writer |