共用方式為


ScriptTagHelper.AppendVersion 屬性

定義

值,指出檔案版本是否應該附加至 src URL。

public:
 property Nullable<bool> AppendVersion { Nullable<bool> get(); void set(Nullable<bool> value); };
[Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("asp-append-version")]
public bool? AppendVersion { get; set; }
[<Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeName("asp-append-version")>]
member this.AppendVersion : Nullable<bool> with get, set
Public Property AppendVersion As Nullable(Of Boolean)

屬性值

屬性

備註

會新增含有檔案編碼內容的查詢字串 「v」。

適用於