StringCollection Methods

The StringCollection type exposes the following members.

  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(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns a StringEnumerator that iterates through the StringCollection.
Public method GetHashCode Serves as the default hash function. (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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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
Public Extension Method AsParallel() Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsParallel() Overloaded. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable() Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method AsQueryable() Overloaded. (Defined by Queryable.)
Public Extension Method Cast<TResult>() Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Cast<TResult>() Overloaded. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. (Defined by Enumerable.)
Top

  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Copies the entire StringCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns a IEnumerator that iterates through the StringCollection.
Explicit interface implemetation Private method IList.Add Adds an object to the end of the StringCollection.
Explicit interface implemetation Private method IList.Contains Determines whether an element is in the StringCollection.
Explicit interface implemetation Private method IList.IndexOf Searches for the specified Object and returns the zero-based index of the first occurrence within the entire StringCollection.
Explicit interface implemetation Private method IList.Insert Inserts an element into the StringCollection at the specified index.
Explicit interface implemetation Private method IList.Remove Removes the first occurrence of a specific object from the StringCollection.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft