IViewStartProvider Interface

Summary

Defines methods for locating ViewStart pages that are applicable to a page.

Syntax

public interface IViewStartProvider

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.Razor.IViewStartProvider

Methods

GetViewStartPages(System.String)

Given a view path, returns a sequence of ViewStart instances that are applicable to the specified view.

Arguments:
  • path (System.String) – The path of the page to locate ViewStart files for.
Return type:

System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.Razor.IRazorPage}

Returns:

A sequence of [Microsoft.AspNet.Mvc.Razor.IRazorPage](Microsoft.AspNet.Mvc.Razor.IRazorPage.yml) that represent ViewStart.

IEnumerable<IRazorPage> GetViewStartPages(string path)