IVsToolboxItemDiscoveryRegistrar.RegisterItemDiscovery Method

Definition

Registers a factory that 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 that must match the discoveryType argument to ProvideToolboxItemDiscoveryAttribute.

factory
IToolboxItemDiscoveryFactory

The factory to be registered.

Applies to