FolderCollection.Add Method
Adds the folder that is located at the specified URL to the collection.
Namespace: Microsoft.SharePoint.Client
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Function Add ( _
strUrl As String _
) As Folder
'Usage
Dim instance As FolderCollection
Dim strUrl As String
Dim returnValue As Folder
returnValue = instance.Add(strUrl)
[RemoteAttribute]
public Folder Add(
string strUrl
)
Parameters
strUrl
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. |