Share via


VsShellUtilities.IsInAutomationFunction(IServiceProvider) Method

Definition

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.

Applies to