Class RazorPage<TModel>
A shell class for cshtml editor to pickup types
public abstract class RazorPage<TModel> where TModel : class
Type Parameters
TModel
- Inheritance
-
objectRazorPage<TModel>
- Derived
Fields
Layout
public string? Layout
Field Value
Properties
Context
public IActionContext Context { get; }
Property Value
Html
public IRazorHtmlHelper<TModel> Html { get; }
Property Value
- IRazorHtmlHelper<TModel>
Logger
public ILogger Logger { get; }
Property Value
Model
public TModel Model { get; }
Property Value
- TModel
ModelState
public ModelState ModelState { get; }
Property Value
Request
public IPhotonRequest Request { get; }
Property Value
Response
public IPhotonResponse Response { get; }
Property Value
RestRequest
public IPhotonActionRequest RestRequest { get; }
Property Value
RestResponse
public IPhotonActionResponse RestResponse { get; }
Property Value
ViewBag
public dynamic ViewBag { get; }
Property Value
- dynamic
ViewData
public IDictionary<string, object> ViewData { get; }
Property Value
Methods
IncludeAsync(string)
public Task<string> IncludeAsync(string view)
Parameters
view
string
Returns
IncludeAsync(string, object)
public Task<string> IncludeAsync(string view, object model)
Parameters
view
stringmodel
object
Returns
RenderBody()
protected string RenderBody()
Returns
RenderBodyAsync()
protected Task<string> RenderBodyAsync()
Returns
RenderSection(string)
public string RenderSection(string name)
Parameters
name
string
Returns
RenderSection(string, bool)
public string RenderSection(string name, bool required)