ServiceDescriptionBaseCollection.OnSet Method (Int32, Object, Object)


Replaces one value with another within the ServiceDescriptionBaseCollection.

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

protected override void OnSet(
	int index,
	object oldValue,
	object newValue


Type: System.Int32

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

Type: System.Object

The object to replace with the newValue parameter.

Type: System.Object

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.

.NET Framework
Available since 1.1
Return to top