PersonalizationStateInfoCollection.SetReadOnly Método

Definição

Marca a coleção como somente leitura.Marks the collection as read-only.

public:
 void SetReadOnly();
public void SetReadOnly ();
member this.SetReadOnly : unit -> unit
Public Sub SetReadOnly ()

Comentários

Métodos que tentam modificar uma coleção somente leitura, como Add e Remove , geram uma NotSupportedException exceção.Methods that attempt to modify a read-only collection, such as Add and Remove, throw a NotSupportedException exception.

Observação

Você pode chamar o SetReadOnly método várias vezes na coleção; isso não gerará uma exceção.You can call the SetReadOnly method multiple times on the collection; this will not raise an exception.

Aplica-se a