Share via


IMappedFolderCollection.Add Method (String)

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

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.

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

Syntax

'Declaration
Function Add ( _
    deploymentPath As String _
) As IMappedFolder
IMappedFolder Add(
    string deploymentPath
)

Parameters

  • deploymentPath
    Type: System.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.

Return Value

Type: Microsoft.VisualStudio.SharePoint.IMappedFolder
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.

.NET Framework Security

See Also

Reference

IMappedFolderCollection Interface

Add Overload

Microsoft.VisualStudio.SharePoint Namespace