DesignerWindowPane.GetToolboxItemSupported Method

Determines whether or not the given data object is supported by the designer.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Protected Overridable Function GetToolboxItemSupported ( _
    toolboxItem As IDataObject _
) As Boolean
protected virtual bool GetToolboxItemSupported(
    IDataObject toolboxItem
)
protected:
virtual bool GetToolboxItemSupported(
    IDataObject^ toolboxItem
)
abstract GetToolboxItemSupported : 
        toolboxItem:IDataObject -> bool  
override GetToolboxItemSupported : 
        toolboxItem:IDataObject -> bool
protected function GetToolboxItemSupported(
    toolboxItem : IDataObject
) : boolean

Parameters

Return Value

Type: Boolean
true if the data object represents a supported toolbox item.

Exceptions

Exception Condition
ArgumentNullException

toolboxItem is nulla null reference (Nothing in Visual Basic).

Remarks

This method is called when Visual Studio needs to evaluate which toolbox items should be enabled. The default implementation searches the service provider for the IVsToolboxUser interface and delegates. If the IVsToolboxUser interface cannot be found, this will search the service provider for IToolboxService and call IsSupported.

.NET Framework Security

See Also

Reference

DesignerWindowPane Class

Microsoft.VisualStudio.Shell.Design Namespace

IToolboxService

IsSupported