SP.FolderCollection.add(strUrl) Method
Applies to: SharePoint Foundation 2010
Adds the folder that is located at the specified URL to the collection.
var value = SP.FolderCollection.add(strUrl);
Parameters
- strUrl
A string that specifies the URL of the folder, either a fully-qualified URL, or a server-relative or Web-relative URL.
Type: String
Return Value
Type: SP.Folder
Applies To
Exceptions
- ArgumentException
The specified URL is not valid in this context. Error code: -2147024809.
- UnauthorizedAccessException
The current user has insufficient permissions. Error code: -2147024891.