Beispiel #1
0
 /// <summary>
 /// Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="sddlForm">The security descriptor for the folder.</param>
 /// <param name="options">Flags that specify how to set the security descriptor.</param>
 /// <exception cref="NotV1SupportedException">Not supported under Task Scheduler 1.0.</exception>
 public void SetSecurityDescriptorSddlForm([NotNull] string sddlForm, TaskSetSecurityOptions options = TaskSetSecurityOptions.None)
 {
     if (v2Folder != null)
     {
         v2Folder.SetSecurityDescriptor(sddlForm, (int)options);
     }
     else
     {
         throw new NotV1SupportedException();
     }
 }
Beispiel #2
0
 public void SetSecurityDescriptorSddlForm(string sddlForm, TaskSetSecurityOptions options = TaskSetSecurityOptions.None);