This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
SortedList Methods
The methods of the SortedList class are listed below. For a complete list of SortedList class members, see the SortedList Members topic.
Public:
Add |
Adds an element with the specified key and value into the SortedList. |
Clear |
Removes all elements from the SortedList. |
Clone |
Creates a shallow copy of the SortedList. |
Contains |
Determines if the SortedList contains a specific key. |
ContainsKey |
Determines if the SortedList contains a specific key. |
ContainsValue |
Determines if the SortedList contains a specific value. |
CopyTo |
Copies the SortedList values into a one-dimensional Array instance at the specified index. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetByIndex |
Retrieves the value at the specified index of the SortedList. |
GetEnumerator |
Returns an enumerator which can be used to iterate through the SortedList. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetKey |
Retrieves the key at the specified index of the SortedList. |
GetKeyList |
Gets the keys in the SortedList. |
GetType (inherited from Object) |
Gets the Type of the Object. |
GetValueList |
Gets the values in the SortedList. |
IndexOfKey |
Returns the index of the specified key in the SortedList. |
IndexOfValue |
Returns the index of the first occurrence of the specified value in the SortedList. |
Remove |
Removes the element with the specified key from SortedList. |
RemoveAt |
Removes the element at the specified index of SortedList. |
SetByIndex |
Saves the value at a specific index in the SortedList. |
Synchronized |
Returns a synchronized (thread-safe) wrapper for the SortedList. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
TrimToSize |
Sets the capacity to the actual number of elements in the SortedList. |
Protected:
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
SortedList Class | System.Collections Namespace