NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SortedList Members

Public:

Constructor

SortedList Constructor Overloaded. Initializes a new instance of the SortedList class.

Properties

Capacity Gets or sets the capacity of the SortedList.
Count Gets the current number of elements in the SortedList.
IsReadOnly Gets a value indicating whether the SortedList is read-only.
IsSynchronized Gets a value indicating whether access to the SortedList is synchronized (thread-safe).
Item Gets and sets the value associated with a specific key in the SortedList.

In C#, this member is the indexer for the SortedList class.

Keys Gets the keys in the SortedList.
SyncRoot Gets an object that can be used to synchronize access to the SortedList.
Values Gets the values in the SortedList.

Methods

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:

Methods

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