Share via

List.AddItem method

Creates a new list item in the list.

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


Public Function AddItem ( _
    parameters As ListItemCreationInformation _
) As ListItem
Dim instance As List
Dim parameters As ListItemCreationInformation
Dim returnValue As ListItem

returnValue = instance.AddItem(parameters)
public ListItem AddItem(
    ListItemCreationInformation parameters


Return value

Type: Microsoft.SharePoint.Client.ListItem
Returns a ListItem instance representing the creation of a new list item in the list.


Exception Condition

Folder for the new list item does not exist or the current user lacks permissions to the folder. Error code: -2130575312. The leafname contains an invalid character. Error code: -2130575245.


ListItemCreationInformation.UnderlyingObjectType is not valid. Error code: -2146233086.


The current user has insufficient permissions. Error code: -2147024891.

See also


List class

List members

Microsoft.SharePoint.Client namespace