Export (0) Print
Expand All

StringCollection Methods

(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.
Top

Community Additions

ADD
Show:
© 2014 Microsoft