0 out of 2 rated this helpful - Rate this topic

SortedList Members

Represents a collection of key/value pairs that are sorted by key based on the associated IComparer implementation.

The following tables list the members exposed by the SortedList generic type.

  Name Description
Public method Supported by the .NET Compact Framework SortedList Overloaded. Initializes a new instance of the SortedList class.
Top
  Name Description
Public property Supported by the .NET Compact Framework Capacity Gets or sets the number of elements that the SortedList can contain.
Public property Supported by the .NET Compact Framework Comparer Gets the IComparer for the sorted list.
Public property Supported by the .NET Compact Framework Count Gets the number of key/value pairs contained in the SortedList.
Public property Supported by the .NET Compact Framework Item Gets or sets the value associated with the specified key.
Public property Supported by the .NET Compact Framework Keys Gets a collection containing the keys in the SortedList.
Public property Supported by the .NET Compact Framework Values Gets a collection containing the values in the SortedList.
Top
(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Add Adds an element with the specified key and value into the SortedList.
Public method Supported by the .NET Compact Framework Clear Removes all elements from the SortedList.
Public method Supported by the .NET Compact Framework ContainsKey Determines whether the SortedList contains a specific key.
Public method Supported by the .NET Compact Framework ContainsValue Determines whether the SortedList contains a specific value.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework GetEnumerator Returns an enumerator that iterates through the SortedList.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Supported by the .NET Compact Framework IndexOfKey Searches for the specified key and returns the zero-based index within the entire SortedList.
Public method Supported by the .NET Compact Framework IndexOfValue Searches for the specified value and returns the zero-based index of the first occurrence within the entire SortedList.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Remove Removes the element with the specified key from the SortedList.
Public method Supported by the .NET Compact Framework RemoveAt Removes the element at the specified index of the SortedList.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Supported by the .NET Compact Framework TrimExcess Sets the capacity to the actual number of elements in the SortedList, if that number is less than 90 percent of current capacity.
Public method Supported by the .NET Compact Framework TryGetValue Gets the value associated with the specified key.
Top
  Name Description
Protected method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
  Name Description
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Add Adds a key/value pair to the ICollection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains Determines whether the ICollection contains a specific element.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove Removes the first occurrence of a specific key/value pair from the ICollection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.ICollection.CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IDictionary.Add Adds an element with the provided key and value to the IDictionary.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IDictionary.Contains Determines whether the IDictionary contains an element with the specified key.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IDictionary.GetEnumerator Returns an IDictionaryEnumerator for the IDictionary.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IDictionary.Remove Removes the element with the specified key from the IDictionary.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.IsReadOnly Gets a value indicating whether the ICollection is read-only.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.Generic.IDictionary<TKey,TValue>.Keys Gets an ICollection containing the keys of the IDictionary.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.Generic.IDictionary<TKey,TValue>.Values Gets an ICollection containing the values in the IDictionary.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.ICollection.SyncRoot Gets an object that can be used to synchronize access to the ICollection.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IDictionary.IsFixedSize Gets a value indicating whether the IDictionary has a fixed size.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IDictionary.IsReadOnly Gets a value indicating whether the IDictionary is read-only.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IDictionary.Item Gets or sets the element with the specified key.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IDictionary.Keys Gets an ICollection containing the keys of the IDictionary.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IDictionary.Values Gets an ICollection containing the values in the IDictionary.
Top
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.