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