C# Class VsTeXProject.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
Datei anzeigen Open project: mimura1133/vstex Class Usage Examples

Public Methods

Method 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.

Private Methods

Method Description
AutomationScope ( ) : System
Dispose ( bool disposing ) : void

Method Details

AutomationScope() public method

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
return System

Dispose() public method

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

ExitAutomation() public method

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