Share via


IMappedFolderCollection.Add Method (MappedFolderType, Boolean)

[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 type to the current SharePoint project.

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

Syntax

'Declaration
Function Add ( _
    folderType As MappedFolderType, _
    skipAutoPackage As Boolean _
) As IMappedFolder
IMappedFolder Add(
    MappedFolderType folderType,
    bool skipAutoPackage
)

Parameters

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

Exceptions

Exception Condition
ArgumentException

The folderType parameter is Other.

Remarks

When you use this method, you can specify any MappedFolderType value except for Other.

.NET Framework Security

See Also

Reference

IMappedFolderCollection Interface

Add Overload

Microsoft.VisualStudio.SharePoint Namespace