共用方式為


ScriptManagerDesigner.GetServiceReferences 方法

定義

傳回網頁 ServiceReference 控制項和 ScriptManager 控制項中定義之所有 ScriptManagerProxy 控制項的集合。

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

參數

scriptManager
ScriptManager

與網頁相關聯的 ScriptManager 控制項。

proxies
IEnumerable<ScriptManagerProxy>

與網頁相關聯的 ScriptManagerProxy 控制項集合。

傳回

ServiceReference 控制項的唯讀集合。

例外狀況

scriptManagernull

適用於

另請參閱