[This is preliminary documentation and is subject to change.]

Creates a new Project from the XML file.

Namespace:  OfficeClip.DBLayer.Tracker
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int CreateNewProject(
	int selId,
	string projectName,
	DataSet ds,
	int currentGroupId,
	int currentUserId
)
Visual Basic (Declaration)
Public Function CreateNewProject ( _
	selId As Integer, _
	projectName As String, _
	ds As DataSet, _
	currentGroupId As Integer, _
	currentUserId As Integer _
) As Integer
Visual C++
public:
int CreateNewProject(
	int selId, 
	String^ projectName, 
	DataSet^ ds, 
	int currentGroupId, 
	int currentUserId
)

Parameters

selId
Type: System..::.Int32
The selected Project type.
projectName
Type: System..::.String
The Project name of the created Project.
ds
Type: System.Data..::.DataSet
The input dataset that needs to be populated.
currentGroupId
Type: System..::.Int32
Id of the current group
currentUserId
Type: System..::.Int32
Id of the current user

Return Value

The unique Project id if successful and -1 if failed, -2 a Project with same name already exists

See Also