使用指定的标题、 说明、 URL、 功能 ID、 列表模板类型和文档模板的类型创建的文档库。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
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
类型:System.String一个字符串,包含的标题。
description
类型:System.String一个字符串,包含的说明。
url
类型:System.String一个包含 URL 的字符串。
featureId
类型:System.String一个字符串,包含的功能的定义的列表的 ID。
templateType
类型:System.Int32一个整数,指定的列表定义的类型。
docTemplateType
类型:System.String一个字符串,包含文档模板的类型的整数 ID。此值对应于文档模板指定的网站模板的Onet.xml文件中指定的Type属性值。下面的列表显示的默认可能的值:
100 — 无
101 — Microsoft Office Word 文档
102 — Microsoft Office SharePoint 设计器网页
103 — Microsoft Office Excel 电子表格
104 — Microsoft Office PowerPoint 演示文稿
105--初级页面
106 — Web 部件页
130 — 数据连接
1000 — 空白窗体
返回值
类型:System.Guid
标识新的列表的 GUID。