We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

MappedFolderType Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the type of a mapped folder in a SharePoint project.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

[CLSCompliantAttribute(true)]
public enum MappedFolderType

Member nameDescription
ControlTemplatesIndicates a mapped folder that is mapped to {SharePointRoot}\Template\ControlTemplates.
ImagesIndicates a mapped folder that is mapped to {SharePointRoot}\Template\Images.
LayoutsIndicates a mapped folder that is mapped to {SharePointRoot}\Template\Layouts.
OtherThis is the value for any mapped folder that is not mapped to one of the folders that is specified by the other MappedFolderType values.
SharePointRootIndicates a mapped folder that is mapped to {SharePointRoot}.
TemplateIndicates a mapped folder that is mapped to {SharePointRoot}\Template.

You can use the MappedFolderType values in the following scenarios:

When you create a mapped folder by using the IMappedFolderCollection.Add(String) or IMappedFolderCollection.Add(String, Boolean) method, the FolderType property of the new mapped folder is automatically set based on the relative path that you specify. If you specify a relative path that does not correspond to one of the standard mapped folder locations, the FolderType property of the new mapped folder has the value Other.

Show: