Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Can be used to invoke any command within Visual Studio.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Public Overrides Function GlobalInvoke ( _
commandID As CommandID _
) As Boolean
public override bool GlobalInvoke(
CommandID commandID
)
Parameters
- commandID
Type: System.ComponentModel.Design.CommandID
The command ID of the command to search for and execute.
Return Value
Type: System.Boolean
true if the invocation succeeded; otherwise, false.
Implements
IMenuCommandService.GlobalInvoke(CommandID)
Remarks
The GlobalInvoke method can be used to invoke any command within Visual Studio. Visual Studio uses a built-in search hierarchy to search for the requested command. The search pattern favors the current document window and then moves out to broader focus.
.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.