SPListCollection.Add Method (String, String, String, SPListDataSource)

Creates a list with the specified title, description, URL, and external data source.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Overridable Function Add ( _
    title As String, _
    description As String, _
    url As String, _
    dataSource As SPListDataSource _
) As Guid
'Usage
Dim instance As SPListCollection
Dim title As String
Dim description As String
Dim url As String
Dim dataSource As SPListDataSource
Dim returnValue As Guid

returnValue = instance.Add(title, description, _
    url, dataSource)
public virtual Guid Add(
    string title,
    string description,
    string url,
    SPListDataSource dataSource
)

Parameters

  • description
    Type: System.String

    A string that contains the description.

Return Value

Type: System.Guid
A GUID that identifies the new list.

See Also

Reference

SPListCollection Class

SPListCollection Members

Add Overload

Microsoft.SharePoint Namespace