We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

IToolboxItemDiscovery.GetItemInfo Method

Returns the IToolboxItemInfo corresponding to a given type.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

IToolboxItemInfo GetItemInfo(
	IToolboxType type


Type: Microsoft.VisualStudio.Shell.IToolboxType

A valid toolbox control type.

Return Value

Type: Microsoft.VisualStudio.Shell.IToolboxItemInfo
The information about this type, or null if the type is not a valid toolbox control type recognized by this provider.

This method should inspect the type of the type argument if it needs to provide different information depending on the source of the type, such as an extension SDK (such as the IToolbox*Type interfaces that derive from IToolboxType).

This method can be called on a background thread.