Metodo IVsToolboxItemDiscoveryRegistrar.RegisterItemDiscovery
Registers a factory that can supply toolbox items corresponding to managed types.
Spazio dei nomi: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)
Sintassi
'Dichiarazione
Sub RegisterItemDiscovery ( _
itemType As Type, _
factory As IToolboxItemDiscoveryFactory _
)
void RegisterItemDiscovery(
Type itemType,
IToolboxItemDiscoveryFactory factory
)
Parametri
- itemType
Tipo: System.Type
A type that must match the discoveryType argument to ProvideToolboxItemDiscoveryAttribute.
- factory
Tipo: Microsoft.VisualStudio.Shell.IToolboxItemDiscoveryFactory
The factory to be registered.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.