IMappedFolderCollection.Add Method
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.
Overloads
Add(MappedFolderType) |
Adds a mapped folder with the specified type to the current SharePoint project, and also adds the mapped folder to the package in the project. |
Add(String) |
Adds a mapped folder with the specified deployment path to the current SharePoint project, and also adds the mapped folder to the package in the project. |
Add(MappedFolderType, Boolean) |
Adds a mapped folder with the specified type to the current SharePoint project. |
Add(String, Boolean) |
Adds a mapped folder with the specified deployment path to the current SharePoint project. |
Add(MappedFolderType)
Adds a mapped folder with the specified type to the current SharePoint project, and also adds the mapped folder to the package in the project.
public:
Microsoft::VisualStudio::SharePoint::IMappedFolder ^ Add(Microsoft::VisualStudio::SharePoint::MappedFolderType folderType);
public Microsoft.VisualStudio.SharePoint.IMappedFolder Add (Microsoft.VisualStudio.SharePoint.MappedFolderType folderType);
abstract member Add : Microsoft.VisualStudio.SharePoint.MappedFolderType -> Microsoft.VisualStudio.SharePoint.IMappedFolder
Public Function Add (folderType As MappedFolderType) As IMappedFolder
Parameters
- folderType
- MappedFolderType
The type of mapped folder to create.
Returns
The mapped folder that was created.
Exceptions
The folderType
parameter is Other.
Remarks
When you use this method, you can specify any MappedFolderType value except for Other.
Applies to
Add(String)
Adds a mapped folder with the specified deployment path to the current SharePoint project, and also adds the mapped folder to the package in the project.
public:
Microsoft::VisualStudio::SharePoint::IMappedFolder ^ Add(System::String ^ deploymentPath);
public Microsoft.VisualStudio.SharePoint.IMappedFolder Add (string deploymentPath);
abstract member Add : string -> Microsoft.VisualStudio.SharePoint.IMappedFolder
Public Function Add (deploymentPath As String) As IMappedFolder
Parameters
- deploymentPath
- String
The path in SharePoint to which the mapped folder is mapped. This path is relative to the root of the SharePoint hive. If the folder does not currently exist, it will be created when the solution is deployed.
Returns
The mapped folder that was created.
Remarks
When you use this method to create a mapped folder and you specify a deploymentPath
value that does not correspond to one of the standard mapped folder locations, the FolderType property of the mapped folder has the value Other.
Applies to
Add(MappedFolderType, Boolean)
Adds a mapped folder with the specified type to the current SharePoint project.
public:
Microsoft::VisualStudio::SharePoint::IMappedFolder ^ Add(Microsoft::VisualStudio::SharePoint::MappedFolderType folderType, bool skipAutoPackage);
public Microsoft.VisualStudio.SharePoint.IMappedFolder Add (Microsoft.VisualStudio.SharePoint.MappedFolderType folderType, bool skipAutoPackage);
abstract member Add : Microsoft.VisualStudio.SharePoint.MappedFolderType * bool -> Microsoft.VisualStudio.SharePoint.IMappedFolder
Public Function Add (folderType As MappedFolderType, skipAutoPackage As Boolean) As IMappedFolder
Parameters
- folderType
- MappedFolderType
The type of mapped folder to create.
- skipAutoPackage
- Boolean
false
to automatically add the mapped folder to the package in the project; otherwise, true
.
Returns
The mapped folder that was created.
Exceptions
The folderType
parameter is Other.
Remarks
When you use this method, you can specify any MappedFolderType value except for Other.
Applies to
Add(String, Boolean)
Adds a mapped folder with the specified deployment path to the current SharePoint project.
public:
Microsoft::VisualStudio::SharePoint::IMappedFolder ^ Add(System::String ^ deploymentPath, bool skipAutoPackage);
public Microsoft.VisualStudio.SharePoint.IMappedFolder Add (string deploymentPath, bool skipAutoPackage);
abstract member Add : string * bool -> Microsoft.VisualStudio.SharePoint.IMappedFolder
Public Function Add (deploymentPath As String, skipAutoPackage As Boolean) As IMappedFolder
Parameters
- deploymentPath
- String
The path in SharePoint to which the mapped folder is mapped. This path is relative to the root of the SharePoint hive. If the folder does not currently exist, it will be created when the solution is deployed.
- skipAutoPackage
- Boolean
false
to automatically add the mapped folder to the package in the project; otherwise, true
.
Returns
The mapped folder that was created.
Remarks
When you use this method to create a mapped folder and you specify a deploymentPath
value that does not correspond to one of the standard mapped folder locations, the FolderType property of the mapped folder has the value Other.