UrlHelper.GenerateContentUrl(String, HttpContextBase) 方法

定義

傳回包含內容 URL 的字串。

public static string GenerateContentUrl (string contentPath, System.Web.HttpContextBase httpContext);
static member GenerateContentUrl : string * System.Web.HttpContextBase -> string
Public Shared Function GenerateContentUrl (contentPath As String, httpContext As HttpContextBase) As String

參數

contentPath
String

內容路徑。

httpContext
HttpContextBase

HTTP 內容。

傳回

包含內容 URL 的字串。

適用於