Share via


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

Return Value

Type: System.Int32

Remarks

For information on the COM interface, see IOleCommandTarget::Exec

.NET Framework Security

See Also

Reference

IOleCommandTarget Interface

IOleCommandTarget Members

Microsoft.VisualStudio.OLE.Interop Namespace