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.
Executes a specified command or displays help for a command.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaration
Private Function Exec ( _
ByRef pguidCmdGroup As Guid, _
nCmdID As UInteger, _
nCmdexecopt As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer Implements IOleCommandTarget.Exec
int IOleCommandTarget.Exec(
ref Guid pguidCmdGroup,
uint nCmdID,
uint nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut
)
Parameters
- pguidCmdGroup
Type: System.Guid%
The ID of the command group to which the command belongs.
- nCmdID
Type: System.UInt32
The ID of the command.
- nCmdexecopt
Type: System.UInt32
A member of the OLECMDEXECOPT enumeration, describing the type of action to take.
- pvaIn
Type: System.IntPtr
A pointer to a VARIANTARG structure containing input arguments. May be nulla null reference (Nothing in Visual Basic).
- pvaOut
Type: System.IntPtr
A pointer to a VARIANTARG structure containing command output. May be nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IOleCommandTarget.Exec(Guid%, UInt32, UInt32, IntPtr, IntPtr)
Remarks
This method calls Exec on the inner project. For information on the COM interface, see IOleCommandTarget::Exec.
.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.