ServiceDescriptionBaseCollection.OnSet Method

Replaces one value with another within the ServiceDescriptionBaseCollection.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in

protected override void OnSet (
	int index,
	Object oldValue,
	Object newValue
protected void OnSet (
	int index, 
	Object oldValue, 
	Object newValue
protected override function OnSet (
	index : int, 
	oldValue : Object, 
	newValue : Object
Not applicable.



The zero-based index where the oldValue parameter can be found.


The object to replace with the newValue parameter.


The object that replaces the oldValue parameter.

The default implementation of this method is intended to be overridden to perform additional processes, such as validation, when setting the value of an element in the collection. This protected method is accessible only through this class or a derived class.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions