Project.Set
Contents
[
Hide
]Set<T>(Key<T, PrjKey>, T)
Maps the specified property to the specified value in this container.
public void Set<T>(Key<T, PrjKey> key, T val)
Parameter | Description |
---|---|
T | the type of the mapped value. |
key | the specified property key. Prj for getting the property key. |
val | the value. |
Examples
Shows how to set task’s attributes.
var project = new Project();
project.Set(Prj.NewTaskStartDate, TaskStartDateType.CurrentDate);
project.Save(OutDir + "SetAttributesForNewTasks_out.xml", SaveFileFormat.Xml);
See Also
- struct Key<T,K>
- enum PrjKey
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks
Set(Key<DateTime, PrjKey>, DateTime)
Maps the specified property to the specified value in this container.
public void Set(Key<DateTime, PrjKey> key, DateTime val)
Parameter | Type | Description |
---|---|---|
key | Key`2 | the specified property key. Prj for getting the property key. |
val | DateTime | the value. |
Examples
Shows how to set task’s attributes.
var project = new Project();
project.Set(Prj.NewTaskStartDate, TaskStartDateType.CurrentDate);
project.Save(OutDir + "SetAttributesForNewTasks_out.xml", SaveFileFormat.Xml);
See Also
- struct Key<T,K>
- enum PrjKey
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks