Share via


ScriptManagerDesigner.GetScriptReferences メソッド

定義

Web ページの ScriptReference コントロールと ScriptManager コントロールに定義されたすべての ScriptManagerProxy コントロールのコレクションを返します。

public:
 static System::Collections::ObjectModel::ReadOnlyCollection<System::Web::UI::ScriptReference ^> ^ GetScriptReferences(System::Web::UI::ScriptManager ^ scriptManager, System::Collections::Generic::IEnumerable<System::Web::UI::ScriptManagerProxy ^> ^ proxies);
public static System.Collections.ObjectModel.ReadOnlyCollection<System.Web.UI.ScriptReference> GetScriptReferences (System.Web.UI.ScriptManager scriptManager, System.Collections.Generic.IEnumerable<System.Web.UI.ScriptManagerProxy> proxies);
static member GetScriptReferences : System.Web.UI.ScriptManager * seq<System.Web.UI.ScriptManagerProxy> -> System.Collections.ObjectModel.ReadOnlyCollection<System.Web.UI.ScriptReference>
Public Shared Function GetScriptReferences (scriptManager As ScriptManager, proxies As IEnumerable(Of ScriptManagerProxy)) As ReadOnlyCollection(Of ScriptReference)

パラメーター

scriptManager
ScriptManager

Web ページに関連付けられている ScriptManager コントロール。

proxies
IEnumerable<ScriptManagerProxy>

Web ページに関連付けられた ScriptManagerProxy コントロールのコレクション。

戻り値

ScriptReference コントロールの読み取り専用のコレクション。

例外

scriptManagernullです。

注釈

返されるコレクションには、 コントロールや UpdatePanel コントロールなどの AJAX 機能をサポートするためにクライアントに自動的に送信されるフレームワーク スクリプトがScriptManager含まれます。

メソッドを使用する GetScriptReferences 場合は、次のガイドラインに注意してください。

  • ScriptReferenceプロパティと Assembly プロパティが同じNameオブジェクトは重複として削除されます。

  • ScriptReference 同じ Path オブジェクトは、デザイン時に重複として削除されません。 ただし、実行時に重複として削除されます。

  • メソッドはResolveClientUrl、オブジェクトの プロパティScriptReferenceの完全修飾 URL をPath返すために使用されます。

  • 返されるコレクション内のオブジェクトは ScriptReference 、元のスクリプト参照の複製されたバージョンであるため、このコレクションを使用してデザイナー コードで変更することはできません。

適用対象

こちらもご覧ください