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)
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
title
Type: System.StringA string that contains the title.
description
Type: System.StringA string that contains the description.
url
Type: System.StringA string that contains the URL.
dataSource
Type: Microsoft.SharePoint.SPListDataSourceAn external data source for the list.
Return value
Type: System.Guid
A GUID that identifies the new list.