IFileVersionProvider.AddFileVersionToPath(PathString, String) 方法

定義

將版本查詢參數新增至指定的檔案路徑。

public:
 System::String ^ AddFileVersionToPath(Microsoft::AspNetCore::Http::PathString requestPathBase, System::String ^ path);
public string AddFileVersionToPath (Microsoft.AspNetCore.Http.PathString requestPathBase, string path);
abstract member AddFileVersionToPath : Microsoft.AspNetCore.Http.PathString * string -> string
Public Function AddFileVersionToPath (requestPathBase As PathString, path As String) As String

參數

requestPathBase
PathString

目前 HTTP 要求的基底路徑。

path
String

應該將版本新增至其中的檔案路徑。

傳回

包含版本查詢字串的路徑。

適用於