Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds the folder that is located at the specified URL to the collection.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function Add ( _
url As String _
) As Folder
'Usage
Dim instance As FolderCollection
Dim url As String
Dim returnValue As Folder
returnValue = instance.Add(url)
public Folder Add(
string url
)
Parameters
url
Type: System.StringA string that specifies the URL of the folder, either a fully-qualified URL, or a server-relative or Web-relative URL.
Return value
Type: Microsoft.SharePoint.Client.Folder
Returns a Folder object that represents the folder.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The specified URL is not valid in this context. Error code: -2147024809. |
UnauthorizedAccessException | The current user has insufficient permissions. Error code: -2147024891. |