Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Shared Function IsInAutomationFunction ( _
serviceProvider As IServiceProvider _
) As Boolean
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
- serviceProvider
Type: System.IServiceProvider
IServiceProvider .
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.