예제 #1
0
 internal void SetSecurityDescriptor(
     string path,
     ObjectSecurity securityDescriptor,
     CmdletProviderContext context)
 {
     using (CmdletProvider.providerBaseTracer.TraceMethod(path, new object[0]))
     {
         this.Context = context;
         ISecurityDescriptorCmdletProvider permissionProvider = this as ISecurityDescriptorCmdletProvider;
         CmdletProvider.CheckIfSecurityDescriptorInterfaceIsSupported(permissionProvider);
         permissionProvider.SetSecurityDescriptor(path, securityDescriptor);
     }
 }