ReadOnlyStringCollection Classe

Definição

A classe ReadOnlyStringCollection é uma coleção somente leitura que contém objetos String.The ReadOnlyStringCollection class is a read-only collection that contains String objects.

public ref class ReadOnlyStringCollection : System::Collections::ReadOnlyCollectionBase
public class ReadOnlyStringCollection : System.Collections.ReadOnlyCollectionBase
type ReadOnlyStringCollection = class
    inherit ReadOnlyCollectionBase
Public Class ReadOnlyStringCollection
Inherits ReadOnlyCollectionBase
Herança
ReadOnlyStringCollection

Propriedades

Count

Obtém o número de elementos contidos na instância de ReadOnlyCollectionBase.Gets the number of elements contained in the ReadOnlyCollectionBase instance.

(Herdado de ReadOnlyCollectionBase)
InnerList

Obtém a lista de elementos contidos na instância ReadOnlyCollectionBase.Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(Herdado de ReadOnlyCollectionBase)
Item[Int32]

Obtém um objeto String nesta coleção.Gets a String object in this collection.

Métodos

Contains(String)

Determina se o objeto String especificado está nesta coleção.Determines if the specified String object is in this collection.

CopyTo(String[], Int32)

Copia todos os objetos String nesta coleção para a matriz especificada, iniciando no índice especificado na matriz de destino.Copies all String objects in this collection to the specified array, starting at the specified index of the target array.

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetEnumerator()

Retorna um enumerador que itera pela instância ReadOnlyCollectionBase.Returns an enumerator that iterates through the ReadOnlyCollectionBase instance.

(Herdado de ReadOnlyCollectionBase)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
IndexOf(String)

Retorna o índice da primeira ocorrência do objeto String especificado nesta coleção.Returns the index of the first occurrence of the specified String object in this collection.

MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Implantações explícitas de interface

ICollection.CopyTo(Array, Int32)

Copia todo o ReadOnlyCollectionBase em um Array unidimensional compatível, começando no índice especificado da matriz de destino.Copies the entire ReadOnlyCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Herdado de ReadOnlyCollectionBase)
ICollection.IsSynchronized

Obtém um valor que indica se o acesso a um objeto ReadOnlyCollectionBase é sincronizado (thread-safe).Gets a value indicating whether access to a ReadOnlyCollectionBase object is synchronized (thread safe).

(Herdado de ReadOnlyCollectionBase)
ICollection.SyncRoot

Obtém um objeto que pode ser usado para sincronizar o acesso a um objeto ReadOnlyCollectionBase.Gets an object that can be used to synchronize access to a ReadOnlyCollectionBase object.

(Herdado de ReadOnlyCollectionBase)

Métodos de Extensão

Cast<TResult>(IEnumerable)

Converte os elementos de um IEnumerable para o tipo especificado.Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filtra os elementos de um IEnumerable com base em um tipo especificado.Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Habilita a paralelização de uma consulta.Enables parallelization of a query.

AsQueryable(IEnumerable)

Converte um IEnumerable em um IQueryable.Converts an IEnumerable to an IQueryable.

Aplica-se a