Export (0) Print
Expand All

StringCollection Members

Represents a collection of strings.

The following tables list the members exposed by the StringCollection type.

  Name Description
Public method StringCollection Initializes a new instance of the StringCollection class.
Top

  Name Description
Public property Count Gets the number of strings contained in the StringCollection.
Public property IsReadOnly Gets a value indicating whether the StringCollection is read-only.
Public property IsSynchronized Gets a value indicating whether access to the StringCollection is synchronized (thread safe).
Public property Item Gets or sets the element at the specified index.
Public property SyncRoot Gets an object that can be used to synchronize access to the StringCollection.
Top

(see also Protected Methods )
  Name Description
Public method Add Adds a string to the end of the StringCollection.
Public method AddRange Copies the elements of a string array to the end of the StringCollection.
Public method Clear Removes all the strings from the StringCollection.
Public method Contains Determines whether the specified string is in the StringCollection.
Public method CopyTo Copies the entire StringCollection values to a one-dimensional array of strings, starting at the specified index of the target array.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetEnumerator Returns a StringEnumerator that iterates through the StringCollection.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IndexOf Searches for the specified string and returns the zero-based index of the first occurrence within the StringCollection.
Public method Insert Inserts a string into the StringCollection at the specified index.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Remove Removes the first occurrence of a specific string from the StringCollection.
Public method RemoveAt Removes the string at the specified index of the StringCollection.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Explicit interface implementation Method System.Collections.ICollection.CopyTo Copies the entire StringCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
Explicit interface implementation Method System.Collections.IEnumerable.GetEnumerator Returns a IEnumerator that iterates through the StringCollection.
Explicit interface implementation Method System.Collections.IList.Add Adds an object to the end of the StringCollection.
Explicit interface implementation Method System.Collections.IList.Contains Determines whether an element is in the StringCollection.
Explicit interface implementation Method System.Collections.IList.IndexOf Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StringCollection.
Explicit interface implementation Method System.Collections.IList.Insert Inserts an element into the StringCollection at the specified index.
Explicit interface implementation Method System.Collections.IList.Remove Removes the first occurrence of a specific object from the StringCollection.
Explicit interface implementation Property System.Collections.IList.IsFixedSize Gets a value indicating whether the StringCollection object has a fixed size.
Explicit interface implementation Property System.Collections.IList.IsReadOnly Gets a value indicating whether the StringCollection object is read-only.
Explicit interface implementation Property System.Collections.IList.Item Gets or sets the element at the specified index.
Top

Community Additions

ADD
Show:
© 2014 Microsoft