Open this page in the API Guide

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

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 null if the project should not be associated with a tenant.

Return Value

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

name is null, empty, only consists of whitespace, or contains invalid characters.

-or-

tenantId is Empty.

ArgumentOutOfRangeExceptionname is longer than MaxNameLength.
DuplicateItemExceptionA project with the specified name already exists.
NotFoundExceptionThe specified tenant was not found.
NoPrivilegeExceptionThe caller is not a system administrator.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also