Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void
예제 #1
0
 void RunInstall()
 {
     try {
         service.Install(installMonitor, packagesToInstall);
     } catch {
         // Nothing
     } finally {
         installMonitor.Dispose();
     }
 }
예제 #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();
     }
 }