IOleCommandTarget.Exec Method
Namespace: Microsoft.VisualStudio.OLE.Interop
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
Syntax
'Declaration
Function Exec ( _
ByRef pguidCmdGroup As Guid, _
nCmdID As UInteger, _
nCmdexecopt As UInteger, _
pvaIn As IntPtr, _
pvaOut As IntPtr _
) As Integer
'Usage
Dim instance As IOleCommandTarget
Dim pguidCmdGroup As Guid
Dim nCmdID As UInteger
Dim nCmdexecopt As UInteger
Dim pvaIn As IntPtr
Dim pvaOut As IntPtr
Dim returnValue As Integer
returnValue = instance.Exec(pguidCmdGroup, _
nCmdID, nCmdexecopt, pvaIn, pvaOut)
int Exec(
ref Guid pguidCmdGroup,
uint nCmdID,
uint nCmdexecopt,
IntPtr pvaIn,
IntPtr pvaOut
)
int Exec(
[InAttribute] Guid% pguidCmdGroup,
[InAttribute] unsigned int nCmdID,
[InAttribute] unsigned int nCmdexecopt,
[InAttribute] IntPtr pvaIn,
[InAttribute] IntPtr pvaOut
)
function Exec(
pguidCmdGroup : Guid,
nCmdID : uint,
nCmdexecopt : uint,
pvaIn : IntPtr,
pvaOut : IntPtr
) : int
Parameters
- pguidCmdGroup
Type: System.Guid%
- nCmdID
Type: System.UInt32
- nCmdexecopt
Type: System.UInt32
- pvaIn
Type: System.IntPtr
- pvaOut
Type: System.IntPtr
Return Value
Type: System.Int32
Remarks
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.