IMappedFolderCollection.Add Method (String, Boolean)

Adds a mapped folder with the specified deployment path to the current SharePoint project.

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

Syntax

'Declaration
Function Add ( _
    deploymentPath As String, _
    skipAutoPackage As Boolean _
) As IMappedFolder
IMappedFolder Add(
    string deploymentPath,
    bool skipAutoPackage
)

Parameters

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

    false to automatically add the mapped folder to the package in the project; otherwise, true.

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