共用方式為


DisplayModeProvider.GetDisplayInfoForVirtualPath 方法

定義

此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。DisplayInfo取得虛擬路徑的 。

public System.Web.WebPages.DisplayInfo GetDisplayInfoForVirtualPath (string virtualPath, System.Web.HttpContextBase httpContext, Func<string,bool> virtualPathExists, System.Web.WebPages.IDisplayMode currentDisplayMode);
member this.GetDisplayInfoForVirtualPath : string * System.Web.HttpContextBase * Func<string, bool> * System.Web.WebPages.IDisplayMode -> System.Web.WebPages.DisplayInfo
Public Function GetDisplayInfoForVirtualPath (virtualPath As String, httpContext As HttpContextBase, virtualPathExists As Func(Of String, Boolean), currentDisplayMode As IDisplayMode) As DisplayInfo

參數

virtualPath
String

虛擬路徑。

httpContext
HttpContextBase

HTTP 內容基底。

virtualPathExists
Func<String,Boolean>

如果虛擬路徑存在,則為 true;否則為 false。

currentDisplayMode
IDisplayMode

目前顯示模式。

傳回

DisplayInfo虛擬路徑的 。

適用於