SPListCollection.Add method (String, String, String, String, Int32, String)
使用指定的標題、 描述、 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, _
featureId As String, _
templateType As Integer, _
docTemplateType As String _
) As Guid
'用途
Dim instance As SPListCollection
Dim title As String
Dim description As String
Dim url As String
Dim featureId As String
Dim templateType As Integer
Dim docTemplateType As String
Dim returnValue As Guid
returnValue = instance.Add(title, description, _
url, featureId, templateType, docTemplateType)
public virtual Guid Add(
string title,
string description,
string url,
string featureId,
int templateType,
string docTemplateType
)
參數
title
Type: System.String字串,包含標題。
description
Type: System.String字串,包含描述。
url
Type: System.String字串,包含 URL。
featureId
Type: System.String字串,包含定義清單的功能的識別碼。
templateType
Type: System.Int32整數,指定清單定義的型別。
docTemplateType
Type: System.String字串,包含文件範本類型的整數 ID。這個值對應到指定的文件範本指定的站台範本的Onet.xml檔案中的Type屬性值。下列清單顯示的預設值可能的值:
100--無
101 — Microsoft Office Word 文件
102 — Microsoft Office SharePoint 設計工具 Web 網頁
103 — Microsoft Office Excel 試算表
104 — Microsoft Office PowerPoint 簡報
105 — 基本頁面
106 — 網頁組件頁面
130 — 資料連接
1000 — 空白表單
傳回值
Type: System.Guid
識別新清單的 GUID。