Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.