SPUtility.MakeBrowserCacheSafeScriptResourceUrl 方法

生成是安全的浏览器使用缓存资源内容的新 URL。如果资源内容已更改的服务器上,将更改此方法检索的 URL,以确保不使用陈旧的浏览器缓存。

命名空间:  Microsoft.SharePoint.Utilities
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Shared Function MakeBrowserCacheSafeScriptResourceUrl ( _
    resxName As String _
) As String
用法
Dim resxName As String
Dim returnValue As String

returnValue = SPUtility.MakeBrowserCacheSafeScriptResourceUrl(resxName)
public static string MakeBrowserCacheSafeScriptResourceUrl(
    string resxName
)

参数

  • resxName
    类型:System.String

    相对于资源目录.resx 文件的名称。

返回值

类型:System.String
一个字符串,包含 /_layouts/ScriptResx.ashx 文件的 URL 位置。此文件检索与 SharePoint 网站关联的资源和 LanguageCulture 文件本地化的资源。

另请参阅

引用

SPUtility 类

SPUtility 成员

Microsoft.SharePoint.Utilities 命名空间