ScriptReference.IgnoreScriptPath 屬性

定義

警告

This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual ScriptReference.

當您從資源註冊客戶端腳本檔案時,會取得或設定一個值,指示該屬性是否 ScriptPath 包含在 URL 中。

public:
 property bool IgnoreScriptPath { bool get(); void set(bool value); };
public bool IgnoreScriptPath { get; set; }
[System.Obsolete("This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual ScriptReference.")]
public bool IgnoreScriptPath { get; set; }
member this.IgnoreScriptPath : bool with get, set
[<System.Obsolete("This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual ScriptReference.")>]
member this.IgnoreScriptPath : bool with get, set
Public Property IgnoreScriptPath As Boolean

屬性值

true如果你註冊客戶端腳本時沒有使用腳本路徑;否則,。 false

屬性

備註

你可以設定 IgnoreScriptPath 何時 true 註冊客戶端腳本檔,但不包含 ScriptPath 腳本檔 URL 中的值。

適用於