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
)
Parameters
- toolboxItem
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject
IDataObject .
Return Value
Type: System.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
- 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.