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 specific commands.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Protected Overridable Function ExecCommand ( _
ByRef guidCmdGroup As Guid, _
cmdId As UInteger, _
cmdExecOptions As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer
protected virtual int ExecCommand(
ref Guid guidCmdGroup,
uint cmdId,
uint cmdExecOptions,
IntPtr pvaIn,
IntPtr pvaOut
)
protected:
virtual int ExecCommand(
Guid% guidCmdGroup,
unsigned int cmdId,
unsigned int cmdExecOptions,
IntPtr pvaIn,
IntPtr pvaOut
)
abstract ExecCommand :
guidCmdGroup:Guid byref *
cmdId:uint32 *
cmdExecOptions:uint32 *
pvaIn:IntPtr *
pvaOut:IntPtr -> int
override ExecCommand :
guidCmdGroup:Guid byref *
cmdId:uint32 *
cmdExecOptions:uint32 *
pvaIn:IntPtr *
pvaOut:IntPtr -> int
protected function ExecCommand(
guidCmdGroup : Guid,
cmdId : uint,
cmdExecOptions : uint,
pvaIn : IntPtr,
pvaOut : IntPtr
) : int
Parameters
guidCmdGroup
Type: Guid%The GUID of the command group.
cmdId
Type: UInt32The ID of the command.
cmdExecOptions
Type: UInt32An OLECMDEXECOPT enumeration giving command options.
pvaIn
Type: IntPtrPointer to a VARIANTARG structure containing input arguments. Can be nulla null reference (Nothing in Visual Basic).
pvaOut
Type: IntPtrPointer to a VARIANTARG structure containing command output. Can be nulla null reference (Nothing in Visual Basic).
Return Value
Type: Int32
S_OK if the command is supported and it succeeded, OLECMDERR_E_NOTSUPPORTED if the command is not supported, or an error code if the command failed.
Remarks
This method should be overridden to intercept the [M:Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec()] call.
.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.