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 的字符串。

适用于