MappedFolderType 枚举

在 SharePoint 项目中指定映射文件夹的类型。

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

语法

声明
<CLSCompliantAttribute(True)> _
Public Enumeration MappedFolderType
[CLSCompliantAttribute(true)]
public enum MappedFolderType

成员

成员名称 说明
Other 这是适用于未映射到由其他 MappedFolderType 值所指定其中一个文件夹的任何映射文件夹的值。
ControlTemplates 指示映射到 {SharePointRoot}\Template\ControlTemplates 的映射文件夹。
Images 指示映射到 {SharePointRoot}\Template\Images 的映射文件夹。
Layouts 指示映射到 {SharePointRoot}\Template\Layouts 的映射文件夹。
SharePointRoot 指示映射到 {SharePointRoot} 的映射文件夹。
Template 指示映射到 {SharePointRoot}\Template 的映射文件夹。

备注

可在以下情形中使用 MappedFolderType 值:

当您通过 IMappedFolderCollection.Add(String)IMappedFolderCollection.Add(String, Boolean) 方法创建映射文件夹时,将根据您指定的相对路径自动设置新映射文件夹的 FolderType 属性。 如果您指定的相对路径与任一标准映射的文件夹位置并不对应,则新映射的文件夹的 FolderType 属性具有值 Other。

请参见

参考

Microsoft.VisualStudio.SharePoint 命名空间