Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Services Property

Gets a ScriptReferenceCollection object that contains a ServiceReference object for each service that is explicitly registered with the ScriptManagerProxy control.

Syntax

CSharp

[MergablePropertyAttribute(false)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[CategoryAttribute("Behavior")]
[DefaultValueAttribute(null)]
[EditorAttribute("System.Web.UI.Design.CollectionEditorBase, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof(UITypeEditor))]
public ServiceReferenceCollection Services { get; }

VisualBasic

<MergablePropertyAttribute(False)> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<CategoryAttribute("Behavior")> _
<DefaultValueAttribute(Nothing)> _
<EditorAttribute("System.Web.UI.Design.CollectionEditorBase, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", GetType())> _
Public ReadOnly Property Services As ServiceReferenceCollection

ManagedCPlusPlus

[MergablePropertyAttribute(false)]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
[CategoryAttribute(L"Behavior")]
[DefaultValueAttribute(nullptr)]
[EditorAttribute(L"System.Web.UI.Design.CollectionEditorBase, System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", typeof())]
public:
ServiceReferenceCollection^ Services {
	ServiceReferenceCollection^ get ();
}

JSharp

/** @property */

Value

Return Value

A ScriptReferenceCollection object that contains an ServiceReference object for each service that is registered with the ScriptManagerProxy control.

Remarks

The Services collection enables you to add services to any that are already registered with the ScriptManager control.

You can add service references to the Services collection declaratively by using the <asp:ServiceReference> element. You can add service references programmatically by adding ServiceReference objects to the Services collection.

If a service is already registered with the ScriptManagerProxy or ScriptManager control, the service is not registered again.

Assembly: System.Web.Extensions (Module: System.Web.Extensions)