CompositeScriptReference.GetUrl(ScriptManager, Boolean) 方法
定义
返回呈现为 src 元素的 script 特性值的 URL。Returns the URL that is rendered as the value of the src attribute of the script element.
protected public:
override System::String ^ GetUrl(System::Web::UI::ScriptManager ^ scriptManager, bool zip);
protected internal override string GetUrl (System.Web.UI.ScriptManager scriptManager, bool zip);
override this.GetUrl : System.Web.UI.ScriptManager * bool -> string
Protected Friend Overrides Function GetUrl (scriptManager As ScriptManager, zip As Boolean) As String
参数
- scriptManager
- ScriptManager
目标网页上的 ScriptManager 控件。The ScriptManager control on the target Web page.
- zip
- Boolean
若要压缩脚本,则为 true;否则为 false。true to compress the script; otherwise, false.
返回
一个字符串,其中包含 URL。A string that contains a URL.