A Sandcastle Documented Class Library

# IFileSystemService CreateFolder Method

Creates a folder in the application's file system.

Namespace: Dundas.BI.FileSystem
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Guid CreateFolder(
    	string name,
    	Guid parentId,
    	EntryCreationOptions options
    )

    Function CreateFolder (
    	name As String,
    	parentId As Guid,
    	options As EntryCreationOptions
    ) As Guid

    Guid CreateFolder(
    	String^ name,
    	Guid parentId,
    	EntryCreationOptions^ options
    )

    abstract CreateFolder :
            name : string *
            parentId : Guid *
            options : EntryCreationOptions -> Guid

#### Parameters

name
  Type: System
  String
  The name of the folder to create.
parentId
  Type: System
  Guid
  The ID of the entry under which the new folder should be created.
options
  Type: Dundas.BI.FileSystem
  EntryCreationOptions
  Options for creating the folder; or
  to use the default options.

#### Return Value

Type: Guid
The ID of the newly created folder.
Exceptions

Exception | Condition
--- | ---
ArgumentException | name is , empty, only consists of whitespace, or contains invalid characters. -or- parentId is Empty.
ArgumentOutOfRangeException | name is longer than MaxNameLength.
DuplicateItemException | An entry with the specified name already exists in the parent entry.
NotFoundException | The entry specified by parentId does not exist.
NoPrivilegeException | The caller does not have permission to create the folder.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IFileSystemService Interface
Dundas.BI.FileSystem Namespace