共用方式為


DefaultViewLocationCache.InsertViewLocation 方法

定義

使用指定的 HTTP 內容、快取索引鍵和虛擬路徑,在指定的虛擬路徑中插入檢視。

public void InsertViewLocation (System.Web.HttpContextBase httpContext, string key, string virtualPath);
abstract member InsertViewLocation : System.Web.HttpContextBase * string * string -> unit
override this.InsertViewLocation : System.Web.HttpContextBase * string * string -> unit
Public Sub InsertViewLocation (httpContext As HttpContextBase, key As String, virtualPath As String)

參數

httpContext
HttpContextBase

HTTP 內容。

key
String

快取索引鍵。

virtualPath
String

虛擬路徑。

實作

例外狀況

httpContext 參數為 null。

適用於