Creates a new Work State.
            The name of the new workstate cannot match that of any existing workstates.
            
            Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
Parameters
- name
- Type: SystemString
 Name of the workstate to create; must be unique
- description
- Type: SystemString
 Description of the new workstate
Return Value
Type: IWorkStateNewly created workstate.
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | When name is null, empty, or whitespace. | 
| ArgumentException | When name matches an existing workstate's name. | 
Remarks
The workstate instance returned is not yet stored in the content store.
See Also