ServiceDescriptionBaseCollection.OnSet(Int32, Object, Object) Método

Definição

Substitui um valor por outro dentro do ServiceDescriptionBaseCollection.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)

Parâmetros

index
Int32

O índice de base zero em que o parâmetro oldValue pode ser encontrado.The zero-based index where the oldValue parameter can be found.

oldValue
Object

O objeto a ser substituído pelo parâmetro newValue.The object to replace with the newValue parameter.

newValue
Object

O objeto que substitui o parâmetro oldValue.The object that replaces the oldValue parameter.

Comentários

A implementação padrão desse método deve ser substituída para executar processos adicionais, como validação, ao definir o valor de um elemento na coleção.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. Esse método protegido é acessível somente por meio desta classe ou de uma classe derivada.This protected method is accessible only through this class or a derived class.

Aplica-se a