OleCommandTargetHelper.AddExecHandler Method
Adds an execution handler for a specified guid and cmdID pair.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Sub AddExecHandler ( _
guid As Guid, _
cmdID As UInteger, _
execHandler As OleCommandTargetHelper..::..ExecHandler _
)
'Usage
Dim instance As OleCommandTargetHelper
Dim guid As Guid
Dim cmdID As UInteger
Dim execHandler As OleCommandTargetHelper..::..ExecHandler
instance.AddExecHandler(guid, cmdID, execHandler)
public void AddExecHandler(
Guid guid,
uint cmdID,
OleCommandTargetHelper..::..ExecHandler execHandler
)
public:
void AddExecHandler(
Guid guid,
unsigned int cmdID,
OleCommandTargetHelper..::..ExecHandler^ execHandler
)
public function AddExecHandler(
guid : Guid,
cmdID : uint,
execHandler : OleCommandTargetHelper..::..ExecHandler
)
member AddExecHandler :
guid:Guid *
cmdID:uint32 *
execHandler:OleCommandTargetHelper..::..ExecHandler -> unit
Parameters
- guid
Type: System.Guid
The Guid
- cmdID
Type: System.UInt32
The command ID
- execHandler
Type: Microsoft.VisualStudio.Data.Schema.Project.Common.UI.OleCommandTargetHelper.ExecHandler
The execution handler
.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.
See Also
Reference
OleCommandTargetHelper Members
Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace