Removes a Work State from the collection.
            
            Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
Parameters
- workState
- Type: Ingeniux.CMSIWorkState
 The workstate to remove
Return Value
Type: BooleanTrue if the workstate exists in collection, false otherwise.
Exceptions
| Exception | Condition | 
|---|---|
| InvalidOperationException | When workstate's name is "Initial", or workstate is still being used in transitions of any workflow definitions. | 
Remarks
If the workstate's name is "Initial" or the workstate is being used in Transitions of any Workflow defintions, it cannot be deleted.
See Also