SPList.AddItem Method

Definition

Overloads

AddItem()
AddItem(String, SPFileSystemObjectType)
AddItem(String, SPFileSystemObjectType, String)

AddItem()

public:
 Microsoft::SharePoint::SPListItem ^ AddItem();
public Microsoft.SharePoint.SPListItem AddItem ();
member this.AddItem : unit -> Microsoft.SharePoint.SPListItem
Public Function AddItem () As SPListItem

Returns

SPListItem

AddItem(String, SPFileSystemObjectType)

public:
 Microsoft::SharePoint::SPListItem ^ AddItem(System::String ^ folderUrl, Microsoft::SharePoint::SPFileSystemObjectType underlyingObjectType);
public Microsoft.SharePoint.SPListItem AddItem (string folderUrl, Microsoft.SharePoint.SPFileSystemObjectType underlyingObjectType);
member this.AddItem : string * Microsoft.SharePoint.SPFileSystemObjectType -> Microsoft.SharePoint.SPListItem
Public Function AddItem (folderUrl As String, underlyingObjectType As SPFileSystemObjectType) As SPListItem

Parameters

folderUrl
String
underlyingObjectType
SPFileSystemObjectType

Returns

SPListItem

AddItem(String, SPFileSystemObjectType, String)

public:
 Microsoft::SharePoint::SPListItem ^ AddItem(System::String ^ folderUrl, Microsoft::SharePoint::SPFileSystemObjectType underlyingObjectType, System::String ^ leafName);
public Microsoft.SharePoint.SPListItem AddItem (string folderUrl, Microsoft.SharePoint.SPFileSystemObjectType underlyingObjectType, string leafName);
member this.AddItem : string * Microsoft.SharePoint.SPFileSystemObjectType * string -> Microsoft.SharePoint.SPListItem
Public Function AddItem (folderUrl As String, underlyingObjectType As SPFileSystemObjectType, leafName As String) As SPListItem

Parameters

folderUrl
String
underlyingObjectType
SPFileSystemObjectType
leafName
String

Returns

SPListItem

Applies to