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
folderType
Type: Microsoft.VisualStudio.SharePoint.MappedFolderTypeThe type of mapped folder to create.
skipAutoPackage
Type: System.Booleanfalse 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.