IToolboxItemDiscoveryWithContext Interface

Visual Studio 2015
 

Provides information about managed types from which toolbox items could be created. Implemented by packages and supplied from IToolboxItemDiscoveryFactory.CreateItemDiscovery. Packages deriving from Microsoft.VisualStudio.Shell.Package supply this object via the dicoveryType argument to ProvideToolboxItemDiscoveryAttribute. This object is only used in a secondary appdomain which is unloaded after assembly enumeration completes.

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

public interface IToolboxItemDiscoveryWithContext

NameDescription
System_CAPS_pubpropertyAdditionalAssemblyPaths

Gets a collection of additional assembly paths to search for toolbox items. For each framework in the "frameworksToEnumerate" argument of the ProvideToolboxItemDiscovery attribute, the toolbox will enumerate all assemblies registered under AssemblyFoldersEx keys, and pass their types to GetItemInfo. However, if you want additional assemblies to show up in your list, you can supply their paths here. You can even omit the "frameworksToEnumerate" argument altogether to use only the assemblies returned from this property. You can return null or an empty enumerator if you don't need to provide any additional assemblies. This method may be called on a background thread.

NameDescription
System_CAPS_pubmethodGetItemInfo(IToolboxType, ToolboxItemDiscoveryContext)

Returns the IToolboxItemInfo corresponding to a given type. This method should inspect the type of the type argument I it needs to provide different information depending on the source of the type (such as an extension SDK). See the IToolbox*Type interfaces that derive from IToolboxType. This method may be called on a background thread.

Return to top
Show: