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

屬性值

Boolean

如果您在註冊用戶端指令碼時未使用指令碼路徑,則為 true,否則為 false

屬性

備註

當您想要註冊用戶端腳本檔案,而不在 ScriptPath 腳本檔案的 URL 中包含 值時,您會設定 IgnoreScriptPath true 為 。

適用於