none
Special Permissions on task

    Question

  • Hi

    I'm haveing a problem with 'SpecialPermissions' its underlined in red (last line of code)

    Error 1 'Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties' does not contain a definition for 'SpecialPermissions' and no extension method 'SpecialPermissions' accepting a first argument of type 'Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties' could be found (are you missing a using directive or an assembly reference?) 

    I already have

    using System.Collections.Specialized;
    private void FC_RemovePendingTask_MethodInvoking(object sender, EventArgs e)
    {
                FC_RemovePendingTask_TaskId1 = Guid.NewGuid();
                FC_RemovePendingTask_TaskProperties1.Title = "Remove Timer";
                
                FC_RemovePendingTask_TaskProperties1.DueDate = DateTime.Today;
               
                FC_RemovePendingTask_TaskProperties1.AssignedTo = "S_Financial";
                
               
    
                HybridDictionary permsCollection = new HybridDictionary();
    
                permsCollection.Add(FC_RemovePendingTask_TaskProperties1.AssignedTo, SPRoleType.Administrator);   
    
                FC_RemovePendingTask_TaskProperties1.SpecialPermissions = permsCollection;
     }

    dimanche 17 juin 2012 11:45

Réponses