Share via


IMappedFolderCollection.Add Method (MappedFolderType)

[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, 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 ( _
    folderType As MappedFolderType _
) As IMappedFolder
IMappedFolder Add(
    MappedFolderType folderType
)

Parameters

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