Dela via


PageBase.Page Method

Definition

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.

Applies to