共用方式為


SPUtility.MakeBrowserCacheSafeScriptResourceUrl method

產生之瀏覽器使用的快取資源內容安全的新 URL。如果資源內容已變更之伺服器上,這個方法會擷取的 URL 會變更為確定未使用的過時的瀏覽器快取。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
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
    Type: System.String

    相對於資源目錄.resx 檔案的名稱。

傳回值

Type: System.String
內含 /_layouts/ScriptResx.ashx 檔案的 URL 位置的字串。此檔案擷取 「 SharePoint 」 網站相關聯的 CurrentUICulture 和 LanguageCulture 檔案進行當地語系化的資源。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace