C# Class Microsoft.VisualStudio.Project.Automation.AutomationScope

Helper class that handle the scope of an automation function. It should be used inside a "using" directive to define the scope of the automation function and make sure that the ExitAutomation method is called.
Inheritance: IDisposable
Afficher le fichier Open project: tunnelvisionlabs/MPFProj10 Class Usage Examples

Méthodes publiques

Méthode Description
AutomationScope ( IServiceProvider provider ) : System

Defines the beginning of the scope of an automation function. This constuctor calls EnterAutomationFunction to signal the Shell that the current function is changing the status of the automation objects.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ExitAutomation ( ) : void

Ends the scope of the automation function. This function is also called by the Dispose method.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AutomationScope() public méthode

Defines the beginning of the scope of an automation function. This constuctor calls EnterAutomationFunction to signal the Shell that the current function is changing the status of the automation objects.
public AutomationScope ( IServiceProvider provider ) : System
provider IServiceProvider
Résultat System

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

ExitAutomation() public méthode

Ends the scope of the automation function. This function is also called by the Dispose method.
public ExitAutomation ( ) : void
Résultat void