ProvideToolboxItemConfigurationAttribute Class
Registers a VSPackage as supplying a particular implementation of IConfigureToolboxItem. Used in conjunction with ProvideAssemblyFilterAttribute.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.ProvideToolboxItemConfigurationAttribute
| Name | Description | |
|---|---|---|
![]() | ProvideToolboxItemConfigurationAttribute(Type) | Initializes a new instance of ProvideToolboxItemConfigurationAttribute. |
| Name | Description | |
|---|---|---|
![]() | ObjectType | Gets the type of the toolbox item configuration. |
![]() | TypeId | Gets the current instance of this attribute.(Inherited from RegistrationAttribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | Register(RegistrationAttribute.RegistrationContext) | Registers the toolbox item configuration.(Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).) |
![]() | ToString() | (Inherited from Object.) |
![]() | Unregister(RegistrationAttribute.RegistrationContext) | Removes the registry key.(Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
Applies to | Classes providing VSPackages by implementing IVsPackage, Package. |
Repeatable | No |
Required attributes | ProvideAssemblyFilterAttribute (applied to the class implementing IConfigureToolboxItem. |
Invalid attributes | None |
A specific instance of ProvideToolboxItemConfigurationAttribute is defined for each instance of IConfigureToolboxItem.
When this attribute is applied to a class that implements IVsPackage or Package, it informs Visual Studio that this VSPackage supplies an implementation of IConfigureToolboxItem.
A VSPackage can have more than one instance of ProvideToolboxItemConfigurationAttribute applied to it.
In the example below, the Package ItemConfiguration implementation is registered as providing the class ToolboxConfig to support an implementation of IConfigureToolboxItem.
using MSVSIP = Microsoft.VisualStudio.Shell;
[assembly:ComVisible(true)]
namespace Vsip.ItemConfiguration
{
/////////////////////////////////////////////////////////////////////////////
// Walkthrough1
[MSVSIP.ProvideToolboxItemsAttribute(110)]
[MSVSIP.DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\8.0")]
[MSVSIP.InstalledProductRegistration(100, 102, "1.0", IconResId = 400)]
[MSVSIP.RegisterLoadKey("Standard", "1.0", "Package Name", "Company", 1)]
[MSVSIP.ProvideMenuResource(1000, 1)]
[ProvideToolboxItemConfigurationAttribute(typeof(ToolboxConfig))]
[GuidAttribute("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")]
public class ItemConfiguration : MSVSIP.Package
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



