SynchronizedReadOnlyCollection(T) Properties

SynchronizedReadOnlyCollection(Of T) Properties

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The SynchronizedReadOnlyCollection(Of T) type exposes the following members.

  NameDescription
Public property Count Gets the number of elements contained in the thread-safe, read-only collection.
Public property Item Gets an element from the thread-safe, read-only collection with a specified index.
Protected property Items Gets the list of elements contained in the thread-safe, read-only collection.
Top

  NameDescription
Explicit interface implemetation Private property ICollection(Of T).IsReadOnly Returns true.
Explicit interface implemetation Private property ICollection.IsSynchronized Gets a value that indicates whether access to the collection is synchronized.
Explicit interface implemetation Private property ICollection.SyncRoot Gets an object that can be used to synchronize access to the collection.
Explicit interface implemetation Private property IList.IsFixedSize Gets a value that indicates whether the collection has a fixed size.
Explicit interface implemetation Private property IList.IsReadOnly Gets a value that indicates whether the collection is read-only.
Explicit interface implemetation Private property IList(Of T).Item Gets the element at the specified index.
Explicit interface implemetation Private property IList.Item Gets the element at the specified index and throws an exception if an element is set.
Top

Show:
© 2017 Microsoft