VsShellUtilities.IsInAutomationFunction Method

Determines whether the extensibility object is currently executing an automation operation.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

public static bool IsInAutomationFunction(
	IServiceProvider serviceProvider
)

Parameters

serviceProvider
Type: System.IServiceProvider
IServiceProvider.

Return Value

Type: System.Boolean
true if the extensibility object is executing an automation operation; otherwise, false.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft