IVsToolboxItemDiscoveryRegistrar.RegisterItemDiscovery Method
Registers a factory that can supply toolbox items corresponding to managed types.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)
Syntax
'Declaration
Sub RegisterItemDiscovery ( _
itemType As Type, _
factory As IToolboxItemDiscoveryFactory _
)
void RegisterItemDiscovery(
Type itemType,
IToolboxItemDiscoveryFactory factory
)
void RegisterItemDiscovery(
Type^ itemType,
IToolboxItemDiscoveryFactory^ factory
)
abstract RegisterItemDiscovery :
itemType:Type *
factory:IToolboxItemDiscoveryFactory -> unit
function RegisterItemDiscovery(
itemType : Type,
factory : IToolboxItemDiscoveryFactory
)
Parameters
itemType
Type: System.TypeA type that must match the discoveryType argument to ProvideToolboxItemDiscoveryAttribute.
factory
Type: Microsoft.VisualStudio.Shell.IToolboxItemDiscoveryFactoryThe factory to be registered.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.