OleCommandTargetHelper Class

Used by tool windows and editors to help with the IOleCommandTarget implementation.

This API is not CLS-compliant. The CLS-compliant alternative is .

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public NotInheritable Class OleCommandTargetHelper _
    Implements IOleCommandTarget
'Usage
Dim instance As OleCommandTargetHelper
[CLSCompliantAttribute(false)]
public sealed class OleCommandTargetHelper : IOleCommandTarget
[CLSCompliantAttribute(false)]
public ref class OleCommandTargetHelper sealed : IOleCommandTarget
public final class OleCommandTargetHelper implements IOleCommandTarget
[<SealedAttribute>]
[<CLSCompliantAttribute(false)>]
type OleCommandTargetHelper =  
    class
        interface IOleCommandTarget
    end

Remarks

To use this class, just add a delegate with the cmd/cmdset GUID ID using AddHandlers. Then editors and tool windows can add commands just like the package level menu handlers.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.Schema.Project.Common.UI.OleCommandTargetHelper

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

OleCommandTargetHelper Members

Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace