GetServiceReferences Method

ScriptManagerDesigner.GetServiceReferences Method (ScriptManager, IEnumerable<ScriptManagerProxy>)

.NET Framework (current version)
 

Returns a collection of all ServiceReference controls that are defined in a Web page's ScriptManager control and ScriptManagerProxy controls.

Namespace:   System.Web.UI.Design
Assembly:  System.Web.Extensions.Design (in System.Web.Extensions.Design.dll)

public static ReadOnlyCollection<ServiceReference> GetServiceReferences(
	ScriptManager scriptManager,
	IEnumerable<ScriptManagerProxy> proxies
)

Parameters

scriptManager
Type: System.Web.UI.ScriptManager

The ScriptManager control that is associated with the Web page.

proxies
Type: System.Collections.Generic.IEnumerable<ScriptManagerProxy>

The collection of ScriptManagerProxy controls that is associated with the Web page.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ServiceReference>

A read-only collection of ServiceReference controls.

Exception Condition
ArgumentNullException

scriptManager is null.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft