UnmapDirectory() public method

Unmaps the label
Operation failure
public UnmapDirectory ( String label ) : void
label String Disk label
return void
Esempio n. 1
0
 public override void BeforeWrapperStopped()
 {
     foreach (SharedDirectoryMapperConfig config in _entries)
     {
         if (config.EnableMapping)
         {
             try
             {
                 _mapper.UnmapDirectory(config.Label);
             }
             catch (MapperException ex)
             {
                 HandleMappingError(config, ex);
             }
         }
     }
 }
Esempio n. 2
0
 public override void OnStop(IEventWriter eventWriter)
 {
     foreach (SharedDirectoryMapperConfig config in _entries)
     {
         if (config.EnableMapping)
         {
             try
             {
                 _mapper.UnmapDirectory(config.Label);
             }
             catch (MapperException ex)
             {
                 HandleMappingError(config, eventWriter, ex);
             }
         }
     }
 }