StartPage.GetStartPage Method

Definition

Returns the initialization page for the specified page.

public static System.Web.WebPages.WebPageRenderingBase GetStartPage (System.Web.WebPages.WebPageRenderingBase page, string fileName, System.Collections.Generic.IEnumerable<string> supportedExtensions);
static member GetStartPage : System.Web.WebPages.WebPageRenderingBase * string * seq<string> -> System.Web.WebPages.WebPageRenderingBase
Public Shared Function GetStartPage (page As WebPageRenderingBase, fileName As String, supportedExtensions As IEnumerable(Of String)) As WebPageRenderingBase

Parameters

page
WebPageRenderingBase

The page.

fileName
String

The file name of the page.

supportedExtensions
IEnumerable<String>

The collection of file-name extensions that can contain ASP.NET Razor syntax, such as "cshtml" and "vbhtml".

Returns

The _AppStart page if the _AppStart page exists. If the _AppStart page cannot be found, returns the _PageStart page if a _PageStart page exists. If the _AppStart and _PageStart pages cannot be found, returns page.

Exceptions

Either page or fileName are null.

supportedExtensions is null or empty.

Applies to