SynchronizedReadOnlyCollection.System.Collections.Generic.IList<T>.Item Property
Gets an element from the thread-safe, read-only collection with a specified index.
Namespace: System.Collections.Generic
Assembly: System.ServiceModel (in system.servicemodel.dll)
'Declaration
Private Property System.Collections.Generic.IList<T>.Item ( _
index As Integer _
) As T Implements IList(Of T).Item
'Usage
Dim instance As SynchronizedReadOnlyCollection(Of T)
Dim index As Integer
Dim value As T
value = CType(instance, IList(Of T)).Item(index)
CType(instance, IList(Of T)).Item(index) = value
T IList<T>.this [
int index
] { get; set; }
private:
virtual property T System.Collections.Generic.IList<T>.Item [int] {
T get (int index) sealed = IList<T>::default::get;
void set (int index, T value) sealed = IList<T>::default::set;
}
Not applicable.
- index
The zero-based index of the element to be retrieved from the collection.
The object in the collection that has the specified index.
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Supported in: 3.0
SynchronizedReadOnlyCollection Class
SynchronizedReadOnlyCollection Members
System.Collections.Generic Namespace