Partager via


IMappedFolderCollection.Add, méthode (MappedFolderType)

Ajoute un dossier mappé avec le type spécifié au projet SharePoint en cours, et ajoute également le dossier mappé au package dans le projet.

Espace de noms :  Microsoft.VisualStudio.SharePoint
Assembly :  Microsoft.VisualStudio.SharePoint (dans Microsoft.VisualStudio.SharePoint.dll)

Syntaxe

'Déclaration
Function Add ( _
    folderType As MappedFolderType _
) As IMappedFolder
IMappedFolder Add(
    MappedFolderType folderType
)

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.SharePoint.IMappedFolder
Le dossier mappé qui a été créé.

Exceptions

Exception Condition
ArgumentException

Le paramètre folderType est Other.

Notes

Lorsque vous utilisez cette méthode, vous pouvez spécifier n'importe quelle valeur MappedFolderType, excepté Other.

Sécurité .NET Framework

Voir aussi

Référence

IMappedFolderCollection Interface

Add, surcharge

Microsoft.VisualStudio.SharePoint, espace de noms