MappedFolderType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the type of a mapped folder in a SharePoint project.
public enum class MappedFolderType
[System.CLSCompliant(true)]
public enum MappedFolderType
[<System.CLSCompliant(true)>]
type MappedFolderType =
Public Enum MappedFolderType
- Inheritance
-
MappedFolderType
- Attributes
Fields
Name | Value | Description |
---|---|---|
Other | 0 | This is the value for any mapped folder that is not mapped to one of the folders that is specified by the other MappedFolderType values. |
ControlTemplates | 1 | Indicates a mapped folder that is mapped to {SharePointRoot}\Template\ControlTemplates. |
Images | 2 | Indicates a mapped folder that is mapped to {SharePointRoot}\Template\Images. |
Layouts | 3 | Indicates a mapped folder that is mapped to {SharePointRoot}\Template\Layouts. |
SharePointRoot | 4 | Indicates a mapped folder that is mapped to {SharePointRoot}. |
Template | 5 | Indicates a mapped folder that is mapped to {SharePointRoot}\Template. |
Remarks
You can use the MappedFolderType values in the following scenarios:
To specify the type of mapped folder that you want to create by using the Microsoft.VisualStudio.SharePoint.IMappedFolderCollection.Add(MappedFolderType) or Microsoft.VisualStudio.SharePoint.IMappedFolderCollection.Add(MappedFolderType, Boolean) method.
To determine the type of mapped folder that an IMappedFolder object represents. Use the FolderType property to determine this.
When you create a mapped folder by using the Microsoft.VisualStudio.SharePoint.IMappedFolderCollection.Add(String) or Microsoft.VisualStudio.SharePoint.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.