Update partial.md (#9132)

React to https://github.com/aspnet/Mvc/issues/8617
pull/9137/head
Pranav K 2018-10-19 14:12:30 -07:00 committed by Scott Addie
parent 6210895547
commit c12382315f
1 changed files with 0 additions and 2 deletions

View File

@ -48,8 +48,6 @@ Unlike MVC view or page rendering, a partial view doesn't run *_ViewStart.cshtml
Partial view file names often begin with an underscore (`_`). This naming convention isn't required, but it helps to visually differentiate partial views from views and pages. Partial view file names often begin with an underscore (`_`). This naming convention isn't required, but it helps to visually differentiate partial views from views and pages.
Razor Pages doesn't serve as a page a partial view whose file name begins with an underscore. The inclusion of a `@page` directive in the partial view's markup doesn't change this behavior. Don't rely on this behavior as a means to secure a partial view.
::: moniker-end ::: moniker-end
::: moniker range="< aspnetcore-2.0" ::: moniker range="< aspnetcore-2.0"