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
index
Type: System.Int32The index of the item.
Property Value
Type: TEntity
The index value.
Implements
Remarks
If an attempt is made to set the item to an object that is already in the collection, nothing will happen.