IToolboxItemDiscoveryWithContext Interface

Definition

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.

public interface class IToolboxItemDiscoveryWithContext
public interface class IToolboxItemDiscoveryWithContext
__interface IToolboxItemDiscoveryWithContext
public interface IToolboxItemDiscoveryWithContext
type IToolboxItemDiscoveryWithContext = interface
Public Interface IToolboxItemDiscoveryWithContext

Remarks

Implemented by packages and supplied from IToolboxItemDiscoveryFactory.CreateItemDiscovery. Packages deriving from Microsoft.VisualStudio.Shell.Package supply this object via the discoveryType argument to ProvideToolboxItemDiscoveryAttribute. This object is only used in a secondary appdomain which is unloaded after assembly enumeration completes.

Properties

AdditionalAssemblyPaths

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.

Methods

GetItemInfo(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.

Applies to