.NET Framework Class Library
Project.CreateNewProject Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > Project Class > Project Methods >

.NET Framework Class Library
Project.CreateNewProject Method

Creates a new project.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function CreateNewProject ( _

 projectId As String, _
 Optional parentUid As Integer = 0, _
 Optional showInputForm As Boolean = False _
As Integer

C#

public int CreateNewProject(

 string projectId,
 int parentUid = 0,
 bool showInputForm = false
)

Visual C++

public:

int CreateNewProject(
 StringprojectId,
 int parentUid = 0,
 bool showInputForm = false
)

JavaScript

function createNewProject(projectIdparentUidshowInputForm);

Parameters

projectId

Type: System.String
It is the new project id

parentUid (Optional)

Type: System.Int32
Unique id of the parent project. This parameter has to be equal to 0 (zero) if a top level project needs to be created. The default is 0.

showInputForm (Optional)

Type: System.Boolean
0 (default): hides the Input Form. 1: shows the Input Form

Return Value

The document unique id of the just created project

See Also

Project Class

Project Members

MwPDMApi Namespace