Hi I have use this code and it works very good but i have a question.
How can I Update the SpecialPermissions Property In the UpdateTask Event.
I assing SpecialPermissions to the task when i create it same as your example:
createTask_SpecialPermissions = new System.Collections.Specialized.HybridDictionary();
createTask_SpecialPermissions[taskOwner.LoginName] = SPRoleType.Contributor; // repeat this step for all users
createTask_SpecialPermissions[user1.LoginName] = SPRoleType.Reader; ....
How can I UPDATE the SpecialPermissions of the same TASK in the UPDATE EVENT
private void TASK1_Update(object sender, EventArgs e)
{
UpdateProp.AssignedTo = "MOSSRV\\user1";
UpdateProp.SpecialPermissions //doesn't Exist.
}
Do you have any Ideas. Thanks.
It very Important.!!!!!
|