Closed Slogmeister closed 3 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
There is no Add method in SPFolder class, if you want to add SPFolder in specific library, use SPFolderCollection.Add like this:
using (SPSite site=new SPSite("http://sp/sites/dev/"))
{
SPWeb web = site.OpenWeb();
SPFolderCollection collFolders = web.GetFolder("Shared Documents").SubFolders;
collFolders.Add("TestFolderForAdd");
}
Jerry Zy Microsoft SharePoint Community Support
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues
You're missing the "Add" method in this documentation.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.