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 控件的集合。

返回

ReadOnlyCollection<ServiceReference>

一个由 ServiceReference 控件组成的只读集合。

例外

scriptManagernull

适用于

另请参阅