VsShellUtilities.IsInAutomationFunction(IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the extensibility object is currently executing an automation operation.
public:
static bool IsInAutomationFunction(IServiceProvider ^ serviceProvider);
public static bool IsInAutomationFunction (IServiceProvider serviceProvider);
static member IsInAutomationFunction : IServiceProvider -> bool
Public Shared Function IsInAutomationFunction (serviceProvider As IServiceProvider) As Boolean
Public Function IsInAutomationFunction (serviceProvider As IServiceProvider) As Boolean
Parameters
- serviceProvider
- IServiceProvider
The service provider.
Returns
true if the extensiblity object is executing an automation function.
Remarks
This method is typically called to determine whether to display a message box or other model window. Because these windows require a response from the user, they should be suppressed during automation operations.