A Sandcastle Documented Class Library

# IProjectService CreateProject Method (String, Nullable Guid )

Create a project with the specified name.

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 CreateProject(
    	string name,
    	Guid? tenantId
    )

    Function CreateProject (
    	name As String,
    	tenantId As Guid?
    ) As Guid

    Guid CreateProject(
    	String^ name,
    	Nullable<Guid> tenantId
    )

    abstract CreateProject :
            name : string *
            tenantId : Nullable<Guid> -> Guid

#### Parameters

name
  Type: System
  String
  The name of the project.
tenantId
  Type: System
  Nullable
  Guid
  The ID of the tenant to be associated with the project, or
  if the project should not be associated with a tenant.

#### Return Value

Type: Guid
The ID of the newly-created project.
Exceptions

Exception | Condition
--- | ---
ArgumentException | name is , empty, only consists of whitespace, or contains invalid characters. -or- tenantId is Empty.
ArgumentOutOfRangeException | name is longer than MaxNameLength.
DuplicateItemException | A project with the specified name already exists.
NotFoundException | The specified tenant was not found.
NoPrivilegeException | The caller is not a system administrator.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IProjectService Interface
CreateProject Overload
Dundas.BI.FileSystem Namespace