次の方法で共有


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

  • 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