Rediger

Del via


ServiceDescriptionBaseCollection.OnSet(Int32, Object, Object) Method

Definition

Replaces one value with another within the ServiceDescriptionBaseCollection.

protected:
 override void OnSet(int index, System::Object ^ oldValue, System::Object ^ newValue);
protected override void OnSet (int index, object oldValue, object newValue);
override this.OnSet : int * obj * obj -> unit
Protected Overrides Sub OnSet (index As Integer, oldValue As Object, newValue As Object)

Parameters

index
Int32

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

oldValue
Object

The object to replace with the newValue parameter.

newValue
Object

The object that replaces the oldValue parameter.

Remarks

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.

Applies to