UndoManager.Exec Method
Implementation of IOleCommandTarget interface. Passes the call to the wrapped IOleUndoManager.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
‘선언
Public Function Exec ( _
ByRef cmdGroup As Guid, _
cmdId As UInteger, _
cmdExecOptions As UInteger, _
inValue As IntPtr, _
outValue As IntPtr _
) As Integer
public int Exec(
ref Guid cmdGroup,
uint cmdId,
uint cmdExecOptions,
IntPtr inValue,
IntPtr outValue
)
public:
virtual int Exec(
Guid% cmdGroup,
unsigned int cmdId,
unsigned int cmdExecOptions,
IntPtr inValue,
IntPtr outValue
) sealed
abstract Exec :
cmdGroup:Guid byref *
cmdId:uint32 *
cmdExecOptions:uint32 *
inValue:IntPtr *
outValue:IntPtr -> int
override Exec :
cmdGroup:Guid byref *
cmdId:uint32 *
cmdExecOptions:uint32 *
inValue:IntPtr *
outValue:IntPtr -> int
public final function Exec(
cmdGroup : Guid,
cmdId : uint,
cmdExecOptions : uint,
inValue : IntPtr,
outValue : IntPtr
) : int
Parameters
- cmdGroup
Type: System.Guid%
The unique identifier of the command group; can be NULL to specify the standard group.
- cmdId
Type: System.UInt32
The command to be executed. This command must belong to the group specified with cmdGroup.
- cmdExecOptions
Type: System.UInt32
Specifies how the object should execute the command. Possible values are taken from the OLECMDEXECOPT and OLECMDID_WINDOWSTATE_FLAG enumerations.
- inValue
Type: System.IntPtr
A pointer to a VARIANTARG structure containing input arguments. This parameter can be NULL.
- outValue
Type: System.IntPtr
Pointer to a VARIANTARG structure to receive command output. This parameter can be NULL.
Return Value
Type: System.Int32
Implements
IOleCommandTarget.Exec(Guid%, UInt32, UInt32, IntPtr, IntPtr)
.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.