Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the list item with the specified identifier (ID).
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Function GetItemByIdAllFields ( _
id As Integer _
) As SPListItem
'Usage
Dim instance As SPList
Dim id As Integer
Dim returnValue As SPListItem
returnValue = instance.GetItemByIdAllFields(id)
public SPListItem GetItemByIdAllFields(
int id
)
id
Type: System.Int32
The ID of the item. The value of this parameter does not correspond to the index of the item within the collection of items for the list, but to the value of the ID property of the list item.
Type: Microsoft.SharePoint.SPListItem
The list item.
This method retrieves data for all fields of the specified item, which can have a significant impact on performance. To retrieve the data for only some fields, call the GetItemByIdSelectedFields(Int32, []) method with the desired fields.
Please sign in to use this experience.
Sign in