Skip to main content
Browse Documentation

Creating a new project

Created by Scott Yearsley on 06 Jun 2019

New

Creates a new project.

Syntax

public Project New(string name, string id, string primaryLanguage, IList<string> supportedLanguages = null, string description = null)
{
}

Parameters

name

Type: string
The name for the project.

id

Type: string
The id for the project.

primaryLanguage

Type: string
The primary language for the project.

supportedLanguages

Type: string
The name of the project.

description

Type: string
The description for the project.

Remarks

Throws an ArgumentException if the name, id or primaryLanguage parameters are either null or empty strings.

Example

using Zengenti.Contensis.Management;

// Create a client
var client = ManagementClient.Create();

// Create a project
var movieDbProject = client.Projects.New("Movie DB", "movieDb", "en-GB");

// Save the new project
movieDbProject.Save();