Condividi tramite


VsShellUtilities.IsInAutomationFunction Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Dichiarazione
Public Shared Function IsInAutomationFunction ( _
    serviceProvider As IServiceProvider _
) As Boolean
'Utilizzo
Dim serviceProvider As IServiceProvider
Dim returnValue As Boolean

returnValue = VsShellUtilities.IsInAutomationFunction(serviceProvider)
public static bool IsInAutomationFunction(
    IServiceProvider serviceProvider
)
public:
static bool IsInAutomationFunction(
    IServiceProvider^ serviceProvider
)
static member IsInAutomationFunction : 
        serviceProvider:IServiceProvider -> bool 
public static function IsInAutomationFunction(
    serviceProvider : IServiceProvider
) : boolean

Parameters

Return Value

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

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.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace