Share via


SharedWorkspaceFolders.Add Method

Adds a folder to the document library in a shared workspace.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Add ( _
    FolderName As String, _
    ParentFolder As Object _
) As SharedWorkspaceFolder
'Usage
Dim instance As SharedWorkspaceFolders
Dim FolderName As String
Dim ParentFolder As Object
Dim returnValue As SharedWorkspaceFolder

returnValue = instance.Add(FolderName, _
    ParentFolder)
SharedWorkspaceFolder Add(
    string FolderName,
    Object ParentFolder
)

Parameters

  • FolderName
    Type: System.String

    Required String. The name of the folder to be added to the current shared workspace.

  • ParentFolder
    Type: System.Object

    Optional SharedWorkspaceFolder. The subfolder in which to place the new folder, if not the main document library folder within the shared workspace. Add the folder to the main document library folder by leaving this optional argument empty.

Return Value

Type: Microsoft.Office.Core.SharedWorkspaceFolder

See Also

Reference

SharedWorkspaceFolders Interface

SharedWorkspaceFolders Members

Microsoft.Office.Core Namespace