Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ReadOnlyObservableCollection Members

Represents a read-only ObservableCollection.

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

  Name Description
Public method ReadOnlyObservableCollection Initializes a new instance of the ReadOnlyObservableCollection class that serves as a wrapper around the specified ObservableCollection.

(see also Protected Properties )
  Name Description
Public property Count  Gets the number of elements contained in the ReadOnlyCollection instance.(inherited from ReadOnlyCollection)
Public property Item  Gets the element at the specified index.(inherited from ReadOnlyCollection)

  Name Description
Protected property Items  Returns the IList that the ReadOnlyCollection wraps.(inherited from ReadOnlyCollection)

(see also Protected Methods )
  Name Description
Public method Contains  Determines whether an element is in the ReadOnlyCollection. (inherited from ReadOnlyCollection)
Public method CopyTo  Copies the entire ReadOnlyCollection to a compatible one-dimensional Array, starting at the specified index of the target array. (inherited from ReadOnlyCollection)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetEnumerator  Returns an enumerator that iterates through the ReadOnlyCollection. (inherited from ReadOnlyCollection)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IndexOf  Searches for the specified object and returns the zero-based index of the first occurrence within the entire ReadOnlyCollection. (inherited from ReadOnlyCollection)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)

  Name Description
Protected method 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 MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnCollectionChanged Raises the CollectionChanged event using the provided arguments.
Protected method OnPropertyChanged Raises the PropertyChanged event using the provided arguments.

  Name Description
Protected event CollectionChanged Occurs when an item is added or removed.
Protected event PropertyChanged Occurs when a property value changes.

Community Additions

© 2015 Microsoft