Share via


ViewLocationExpanderContext.PageName Property

Definition

Gets the page name. This will be the value of the page route value when rendering a Page from the Razor Pages framework. This value will be null if rendering a view as the result of a controller.

public:
 property System::String ^ PageName { System::String ^ get(); };
public string PageName { get; }
public string? PageName { get; }
member this.PageName : string
Public ReadOnly Property PageName As String

Property Value

Applies to