PageBase.Page Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a PageResult object that renders this page as a view to the response.
public:
virtual Microsoft::AspNetCore::Mvc::RazorPages::PageResult ^ Page();
public virtual Microsoft.AspNetCore.Mvc.RazorPages.PageResult Page ();
abstract member Page : unit -> Microsoft.AspNetCore.Mvc.RazorPages.PageResult
override this.Page : unit -> Microsoft.AspNetCore.Mvc.RazorPages.PageResult
Public Overridable Function Page () As PageResult
Returns
The created PageResult object for the response.
Remarks
Returning a PageResult from a page handler method is equivalent to returning void. The view associated with the page will be executed.