ProvideAssemblyFilterAttribute Class
Describes the assemblies that the IConfigureToolboxItem class supports.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
| Name | Description | |
|---|---|---|
![]() | ProvideAssemblyFilterAttribute(String) | Creates a new instance of a ProvideAssemblyFilterAttribute object with the specified assembly name. |
| Name | Description | |
|---|---|---|
![]() | AssemblyFilter | Gets the full assembly specification of the filter. |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | ToString() | (Inherited from Object.) |
| 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.) |
An IConfigureToolboxItem must be contained in a VSPackage.
The ProvideAssemblyFilterAttribute attributes are applied to a IConfigureToolboxItem in order to specify which ToolboxItem objects are configured by the IConfigureToolboxItem object.
A IConfigureToolboxItem class filters these assemblies on the basis of the parent assembly of the ToolboxItem class. This parent assembly is specified in the constructor ProvideAssemblyFilterAttribute, which is used to create a given instance of ProvideAssemblyFilterAttribute applied to that IConfigureToolboxItem object.
When specifying an assembly:
The ProvideAssemblyFilterAttribute specifies the full assembly identification, including a simple name, a version number, a cryptographic key pair, and a supported culture. For more information on assembly identification, see AssemblyName. The * character in a specification is interpreted as a wildcard.
The assembly name is set through the solution properties dialog.
The example below registers the ToolboxConfig class as providing configuration support for all ToolboxItem classes in all assemblies that have a name beginning with Vsip.
[ProvideAssemblyFilterAttribute("Vsip.*, Version=*, Culture=*, PublicKeyToken=*")]
public sealed class ToolboxConfig : IConfigureToolboxItem
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
AssemblyName
IConfigureToolboxItem
ToolboxItem
ProvideAssemblyFilterAttribute
Microsoft.VisualStudio.Shell Namespace
Extending the Toolbox



