ScriptReference.IgnoreScriptPath 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This property is obsolete. Instead of using ScriptManager.ScriptPath, set the Path property on each individual ScriptReference.
获取或设置一个值,该值指示从资源注册客户端脚本文件时,URL 中是否包括 ScriptPath 属性。
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
。
- 属性
注解
You set IgnoreScriptPath to true
when you want to register a client script file without including the ScriptPath value in the URL of the script file.