#TopCollection

##Properties

Datatype Property name Property description Default Value
Int32 Count Gets the number of strings contained in the System.Collections.Specialized.StringCollection. 0
Boolean IsReadOnly Gets a value indicating whether the System.Collections.Specialized.StringCollection is read-only. False
Boolean IsSynchronized Gets a value indicating whether access to the System.Collections.Specialized.StringCollection is synchronized (thread safe). False
String Item   null
Object SyncRoot Gets an object that can be used to synchronize access to the System.Collections.Specialized.StringCollection. null

##Methods

###Add(System.String)

Parameters:


###Add(System.String) Adds a string to the end of the System.Collections.Specialized.StringCollection.

Parameters:

Returns:

The zero-based index at which the new element is inserted.


###AddRange(System.String[]) Copies the elements of a string array to the end of the System.Collections.Specialized.StringCollection.

Parameters:


###Clear() Removes all the strings from the System.Collections.Specialized.StringCollection.


###Contains(System.String) Determines whether the specified string is in the System.Collections.Specialized.StringCollection.

Parameters:


###CopyTo(System.String[],System.Int32) Copies the entire System.Collections.Specialized.StringCollection values to a one-dimensional array of strings, starting at the specified index of the target array.

Parameters:


###Equals(System.Object) Determines whether the specified System.Object is equal to the current System.Object.

Parameters:

Returns:

true if the specified System.Object is equal to the current System.Object; otherwise, false.


###GetEnumerator() Returns a System.Collections.Specialized.StringEnumerator that iterates through the System.Collections.Specialized.StringCollection.

Returns:

A System.Collections.Specialized.StringEnumerator for the System.Collections.Specialized.StringCollection.


###GetHashCode() Serves as a hash function for a particular type.

Returns:

A hash code for the current System.Object.


###GetType() Gets the System.Type of the current instance.

Returns:

The System.Type instance that represents the exact runtime type of the current instance.


###IndexOf(System.String) Searches for the specified string and returns the zero-based index of the first occurrence within the System.Collections.Specialized.StringCollection.

Parameters:

  • System.String value - The string to locate. The value can be null.

###Insert(System.Int32,System.String)

Parameters:


###Insert(System.Int32,System.String) Inserts a string into the System.Collections.Specialized.StringCollection at the specified index.

Parameters:


###Remove(System.String)

Parameters:


###Remove(System.String) Removes the first occurrence of a specific string from the System.Collections.Specialized.StringCollection.

Parameters:


###RemoveAt(System.Int32) Removes the string at the specified index of the System.Collections.Specialized.StringCollection.

Parameters:

  • System.Int32 index - The zero-based index of the string to remove.

###ToString() Returns a System.String that represents the current System.Object.

Returns:

A System.String that represents the current System.Object.