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
Mostra file Open project: tunnelvisionlabs/MPFProj10 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.

Protected Methods

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

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
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