ThreadSafeReadOnlyObservableCollection<T> Class
Represents a read-only observable collection that is thread safe.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly: ProviderFramework (in ProviderFramework.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsServerSolutions.Common.ProviderFramework.ThreadSafeReadOnlyObservableCollection<T>
Microsoft.WindowsServerSolutions.Common.Devices.ReadOnlyDeviceInfoCollection
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.ReadOnlyAlertCollection
Syntax
public class ThreadSafeReadOnlyObservableCollection<T> : IList<T>,
ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection,
INotifyPropertyChanged, INotifyCollectionChanged
generic<typename T>
public ref class ThreadSafeReadOnlyObservableCollection : IList<T>,
ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection,
INotifyPropertyChanged, INotifyCollectionChanged
Public Class ThreadSafeReadOnlyObservableCollection(Of T)
Implements IList(Of T), ICollection(Of T), IEnumerable(Of T), IEnumerable,
IList, ICollection, INotifyPropertyChanged, INotifyCollectionChanged
Type Parameters
- T
The type of elements in the collection.
Constructors
Name | Description | |
---|---|---|
ThreadSafeReadOnlyObservableCollection<T>(ObservableCollection<T>) | Initializes a new instance of the ThreadSafeReadOnlyObservableCollection<T> class. |
Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements in the collection. |
|
IsReadOnly | Indicates whether the collection is read only. |
|
Item[Int32] | Gets the item at the specified index from the collection. |
Methods
Name | Description | |
---|---|---|
Contains(T) | Determines whether the collection contains a specified item. |
|
Contains(Object) | Determines whether the collection contains a specified value. |
|
CopyTo(T[], Int32) | Copies the elements of the collection to an array, starting at a specified index. |
|
CopyTo(Array, Int32) | Copies the elements of the collection to an array, starting at a specified index. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetEnumerator() | Returns an enumerator that iterates through a collection. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
IndexOf(T) | Returns the index of the first occurrence of an object in the collection. |
|
IndexOf(Object) | Returns the index of the first occurrence of an object in the collection. |
|
MemberwiseClone() | (Inherited from Object.) |
|
Remove(T) | Removes the specified item from the collection. |
|
ToString() | (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
CollectionChanged | Represents an event that occurs when an item is added or removed. |
|
PropertyChanged | Represents an event that occurs when a property value changes. |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection<T>.Add(T) | Adds the specified item to the collection. |
|
ICollection<T>.Clear() | Clears the collection. |
|
IList<T>.Insert(Int32, T) | Inserts the specified item into the collection at the specified index. |
|
IList<T>.RemoveAt(Int32) | Removes the item at the specified index from the collection. |
|
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
|
IList.Add(Object) | Adds the specified value to the collection. |
|
IList.Clear() | Clears the collection. |
|
IList.Insert(Int32, Object) | Inserts the specified value into the collection at the specified index. |
|
IList.Remove(Object) | Removes the specified value from the collection. |
|
IList.RemoveAt(Int32) | Removes the value at the specified index from the collection. |
|
ICollection.IsSynchronized | Indicates whether the collection is synchronized. |
|
ICollection.SyncRoot | Gets an object that can be used to synchronize access to the collection. |
|
IList.IsFixedSize | Indicates whether the collection is a fixed size. |
|
IList.Item[Int32] | Gets the item at the specified index from the collection. |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace
Return to top