CollectionBase.IList.IsReadOnly Propriedade
Definição
Obtém um valor que indica se o CollectionBase é somente leitura.Gets a value indicating whether the CollectionBase is read-only.
property bool System::Collections::IList::IsReadOnly { bool get(); };
bool System.Collections.IList.IsReadOnly { get; }
member this.System.Collections.IList.IsReadOnly : bool
ReadOnly Property IsReadOnly As Boolean Implements IList.IsReadOnly
Valor da propriedade
true se o CollectionBase for somente leitura; caso contrário, false.true if the CollectionBase is read-only; otherwise, false. O padrão é false.The default is false.
Implementações
Comentários
Uma coleção que seja somente leitura não permite a adição, a remoção ou a modificação de elementos após a coleção ser criada.A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.
Uma coleção somente leitura é apenas uma coleção com um wrapper que impede a modificação da coleção; por isso, caso as alterações sejam feitas na coleção subjacente, a coleção somente leitura reflete as alterações.A collection that is read-only is simply a collection with a wrapper that prevents modifying the collection; therefore, if changes are made to the underlying collection, the read-only collection reflects those changes.
A recuperação do valor dessa propriedade é uma O(1) operação.Retrieving the value of this property is an O(1) operation.