Adds the specified resource as an assignment to the AssignmentsContent property value of a specific task in the control.
Requires that AssignmentsContent property of the task items is of type string, formatted as a list of resource names separated by commas, optionally having associated allocation percents declared between square brackets (e.g.: "John, Mary [50%], Diane [12.5%]").
Namespace:
DlhSoft.Web.MvcAssembly: DlhSoft.ProjectData.GanttChart.Mvc.Extensions (in DlhSoft.ProjectData.GanttChart.Mvc.Extensions.dll)
Syntax
| C# |
|---|
public void AddAssignment( GanttChartItem item, string resourceName ) |
| Visual Basic (Declaration) |
|---|
Public Sub AddAssignment ( _ item As GanttChartItem, _ resourceName As String _ ) |
Parameters
- item
- Type: DlhSoft.Web.Mvc..::.GanttChartItem
The task item to add the assignment to.
- resourceName
- Type: System..::.String
The resource name to add as an assignment.