IVsToolboxItemDiscoveryRegistrar.RegisterItemDiscovery Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a factory which can supply toolbox items corresponding to managed types.
public:
void RegisterItemDiscovery(Type ^ itemType, Microsoft::VisualStudio::Shell::IToolboxItemDiscoveryFactory ^ factory);
public:
void RegisterItemDiscovery(Platform::Type ^ itemType, Microsoft::VisualStudio::Shell::IToolboxItemDiscoveryFactory ^ factory);
public void RegisterItemDiscovery (Type itemType, Microsoft.VisualStudio.Shell.IToolboxItemDiscoveryFactory factory);
abstract member RegisterItemDiscovery : Type * Microsoft.VisualStudio.Shell.IToolboxItemDiscoveryFactory -> unit
Public Sub RegisterItemDiscovery (itemType As Type, factory As IToolboxItemDiscoveryFactory)
Parameters
- itemType
- Type
A type which must match the discoveryType argument to ProvideToolboxItemDiscoveryAttribute.
- factory
- IToolboxItemDiscoveryFactory
The factory to be registered.