Export (0) Print
Expand All

ReadOnlyCollection Members

Provides the base class for a generic read-only collection.

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

  Name Description
Public method Supported by the .NET Compact Framework ReadOnlyCollection Initializes a new instance of the ReadOnlyCollection class that is a read-only wrapper around the specified list.
Top

(see also Protected Properties )
  Name Description
Public property Supported by the .NET Compact Framework Count Gets the number of elements contained in the ReadOnlyCollection instance.
Public property Supported by the .NET Compact Framework Item Gets the element at the specified index.
Top

  Name Description
Protected property Supported by the .NET Compact Framework Items Returns the IList that the ReadOnlyCollection wraps.
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Contains Determines whether an element is in the ReadOnlyCollection.
Public method Supported by the .NET Compact Framework CopyTo Copies the entire ReadOnlyCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
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 ReadOnlyCollection.
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 IndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the entire ReadOnlyCollection.
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 ToString  Returns a String that represents the current Object. (inherited from Object)
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<T>.Add Adds an item to the ICollection. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.ICollection<T>.Clear Removes all items from the ICollection. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.ICollection<T>.Remove Removes the first occurrence of a specific object from the ICollection. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.IList<T>.Insert Inserts an item to the IList at the specified index. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.Generic.IList<T>.RemoveAt Removes the IList item at the specified index. This implementation always throws NotSupportedException.
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.IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Add Adds an item to the IList. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Clear Removes all items from the IList. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Contains Determines whether the IList contains a specific value.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.IndexOf Determines the index of a specific item in the IList.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Insert Inserts an item to the IList at the specified index. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.Remove Removes the first occurrence of a specific object from the IList. This implementation always throws NotSupportedException.
Explicit interface implementation Method Supported by the .NET Compact Framework System.Collections.IList.RemoveAt Removes the IList item at the specified index. This implementation always throws NotSupportedException.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.Generic.ICollection<T>.IsReadOnly Gets a value indicating whether the ICollection is read-only.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.Generic.IList<T>.Item Gets or sets the element at the specified index.
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.IList.IsFixedSize Gets a value indicating whether the IList has a fixed size.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.IsReadOnly Gets a value indicating whether the IList is read-only.
Explicit interface implementation Property Supported by the .NET Compact Framework System.Collections.IList.Item Gets or sets the element at the specified index.
Top

Community Additions

ADD
Show:
© 2014 Microsoft