...
string myWorkItem.Caption { get; set; }
Remarks
Caption is evaluated from the task caption by default, but unlike name property, this property can be changed later.
If the state is not in Waiting or Created, trying to set this property is prohibited and an access denied error will be thrown.
Example
Code Block | ||
---|---|---|
| ||
// Changing the caption:
$WorkItem.Caption = 'Leave Request'; |