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
folderType
Type: Microsoft.VisualStudio.SharePoint.MappedFolderTypeThe type of mapped folder to create.
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.