IVsToolboxService Interface

This interface defines additional functionality for the Visual Studio implementation of IToolboxService. When running inside Visual Studio, VSPackages can cast IToolboxService to IVsToolboxService to access this functionality.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Toolbox
Assembly:  Microsoft.VisualStudio (in Microsoft.VisualStudio.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(False)> _
Public Interface IVsToolboxService
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(false)]
public interface IVsToolboxService
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(false)]
public interface class IVsToolboxService
[<CLSCompliantAttribute(false)>]
[<ComVisibleAttribute(false)>]
type IVsToolboxService =  interface end
public interface IVsToolboxService

The IVsToolboxService type exposes the following members.

Methods

  Name Description
Public method AddToolboxItem(ToolboxItem, String, IVsAddToolboxItems) Adds a toolbox item. This does the same thing as IToolboxService.AddToolboxItem except that it adds the item by calling a method on the specified IVsAddToolboxItems object rather than the IVsToolbox service.
Public method AddToolboxItem(ToolboxItem, String, IEnumerable<FrameworkName>, Guid) This adds a toolbox item and sets the supported .NET Framework versions and the GUID of the VSPackage that provides the toolbox item. If this is set properly, it will skip calling into expensive DTAR (Design-Time Assembly Resolution) to ensure the minimum required framework version.
Public method GetOleDataObject Gets an OLE-compatible data object corresponding to a ToolboxItem that has been added to the toolbox. You must call AddToolboxItem before calling this method.

Top

See Also

Reference

Microsoft.VisualStudio.Toolbox Namespace