IMappedFolderCollection.Add 方法 (String)

将具有指定部署路径的映射文件夹添加到当前 SharePoint 项目中,并将映射文件夹添加到项目的包中。

命名空间:  Microsoft.VisualStudio.SharePoint
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)

语法

声明
Function Add ( _
    deploymentPath As String _
) As IMappedFolder
IMappedFolder Add(
    string deploymentPath
)

参数

  • deploymentPath
    类型:System.String
    映射文件夹所映射到的 SharePoint 中的路径。此路径为 SharePoint 配置单元的根的相对路径。如果此文件夹当前不存在,则在解决方案部署时创建文件夹。

返回值

类型:Microsoft.VisualStudio.SharePoint.IMappedFolder
已创建的映射文件夹。

备注

使用此方法来创建映射文件夹以及指定不与其中一个标准映射文件夹位置相对应的 deploymentPath 值时,映射文件夹的 FolderType 属性的值为 Other

.NET Framework 安全性

请参见

参考

IMappedFolderCollection 接口

Add 重载

Microsoft.VisualStudio.SharePoint 命名空间