internal void Remove(PSDriveInfo drive, string scope, ProviderRuntime runtime)
 {
     // make sure the provider can clean up this drive properly
     GetProvider(drive).RemoveDrive(drive, runtime);
     if (String.IsNullOrEmpty(scope))
     {
         _scope.Remove(drive.ItemName, false);
     }
     else
     {
         _scope.RemoveAtScope(drive.ItemName, scope);
     }
 }
Esempio n. 2
0
 public void Remove(string name)
 {
     _scope.Remove(name, true);
 }