ProvideAssemblyFilterAttribute Class

Describes the assemblies that the IConfigureToolboxItem class supports.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

‘선언
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := True, AllowMultiple := True)> _
Public NotInheritable Class ProvideAssemblyFilterAttribute _
    Inherits Attribute
‘사용 방법
Dim instance As ProvideAssemblyFilterAttribute
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
public sealed class ProvideAssemblyFilterAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, Inherited = true, AllowMultiple = true)]
public ref class ProvideAssemblyFilterAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = true)>]
type ProvideAssemblyFilterAttribute =  
    class
        inherit Attribute
    end
public final class ProvideAssemblyFilterAttribute extends Attribute

Remarks

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. For more information, see Solution Property Pages Dialog Box.

Examples

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 

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.ProvideAssemblyFilterAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

ProvideAssemblyFilterAttribute Members

Microsoft.VisualStudio.Shell Namespace

AssemblyName

IConfigureToolboxItem

ToolboxItem

ProvideAssemblyFilterAttribute

Other Resources

Toolbox (Visual Studio SDK)