Condividi tramite


FolderCollection.Add method

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.String

    A 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.

See also

Reference

FolderCollection class

FolderCollection members

Microsoft.SharePoint.Client namespace