Share via


EntitySet<TEntity>.IList.Item property

Gets or sets the item at the specified index.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

Syntax

'Declaration
Private Property Item ( _
    index As Integer _
) As Object Implements IList.Item
    Get
    Set
'Usage
Dim instance As EntitySet
Dim index As Integer
Dim value As Object

value = CType(instance, IList).Item(index)

CType(instance, IList).Item(index) = value
ObjectIList.this[
    int index
] { get; set; }

Parameters

Property value

Type: System.Object
A Object that represents the item at the specified index and that is castable to the type of entities represented by the EntitySet<TEntity>.

Implements

IList.Item[Int32]

Remarks

If an attempt is made to set the item to an object that is already in the collection, nothing will happen.

See also

Reference

EntitySet<TEntity> class

EntitySet<TEntity> members

Microsoft.SharePoint.Linq namespace