Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Private Function Exec ( _
ByRef guidCmdGroup As Guid, _
nCmdId As UInteger, _
nCmdexecopt As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer Implements IOleCommandTarget.Exec
'使用
Dim instance As ViewFilter
Dim guidCmdGroup As Guid
Dim nCmdId As UInteger
Dim nCmdexecopt As UInteger
Dim pvaIn As IntPtr
Dim pvaOut As IntPtr
Dim returnValue As Integer
returnValue = CType(instance, IOleCommandTarget).Exec(guidCmdGroup, _
nCmdId, nCmdexecopt, pvaIn, pvaOut)
int IOleCommandTarget.Exec(
ref Guid guidCmdGroup,
uint nCmdId,
uint nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut
)
private:
virtual int Exec(
Guid% guidCmdGroup,
unsigned int nCmdId,
unsigned int nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut
) sealed = IOleCommandTarget::Exec
JScript does not support explicit interface implementations.
Parameters
- guidCmdGroup
Type: System.Guid%
- nCmdId
Type: System.UInt32
- nCmdexecopt
Type: System.UInt32
- pvaIn
Type: System.IntPtr
- pvaOut
Type: System.IntPtr
Return Value
Type: System.Int32
Implements
IOleCommandTarget.Exec(Guid%, UInt32, UInt32, IntPtr, IntPtr)
Permissions
- 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.