Share via


EntitySet<TEntity>.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
Public Property Item ( _
    index As Integer _
) As TEntity
    Get
    Set
'Usage
Dim instance As EntitySet
Dim index As Integer
Dim value As TEntity

value = instance.Item(index)

instance.Item(index) = value
public TEntity this[
    int index
] { get; set; }

Parameters

Property Value

Type: TEntity
The index value.

Implements

IList<T>.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