Dispose() public méthode

public Dispose ( ) : void
Résultat void
Exemple #1
0
 void RunInstall()
 {
     try {
         service.Install(installMonitor, packagesToInstall);
     } catch {
         // Nothing
     } finally {
         installMonitor.Dispose();
     }
 }
Exemple #2
0
 void RunInstall()
 {
     try {
         if (filesToInstall != null)
         {
             service.Install(installMonitor, filesToInstall);
         }
         else
         {
             service.Install(installMonitor, packagesToInstall);
         }
     } catch (Exception ex) {
         installMonitor.Errors.Add(ex.Message);
     } finally {
         installMonitor.Dispose();
     }
 }