ScriptReference.IgnoreScriptPath 属性

定义

注意

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

属性值

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.

适用于