SPListCollection.Add method (String, String, String, SPListDataSource)
建立具有指定的標題、 描述、 URL 及外部資料來源的清單。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Function Add ( _
title As String, _
description As String, _
url As String, _
dataSource As SPListDataSource _
) As Guid
'用途
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
)
參數
title
Type: System.String字串,包含標題。
description
Type: System.String字串,包含描述。
url
Type: System.String字串,包含 URL。
dataSource
Type: Microsoft.SharePoint.SPListDataSource外部資料來源的清單。
傳回值
Type: System.Guid
識別新清單的 GUID。