共用方式為


ProvideAssemblyFilterAttribute Constructor

Creates a new instance of a ProvideAssemblyFilterAttribute object with the specified assembly name.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Sub New ( _
    assemblyFilter As String _
)
public ProvideAssemblyFilterAttribute(
    string assemblyFilter
)

Parameters

  • assemblyFilter
    Type: System.String
    [in] The full name of an assembly.

Remarks

The assemblyFilter parameter 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 is interpreted as a wildcard.

The assemblyFilter parameter must always include the assembly name and namespace, for example Vsip.ItemConfiguration.

If other members of the assembly identification are not present, they are treated as wildcards. In other words, Vsip.*, Version=*, Culture=*, PublicKeyToken=* and Vsip.* are equivalent.

Examples

The example below registers ToolboxConfig as providing configuration support for all ToolboxItem objects in all assemblies that have a name beginning with Vsip.

    [ProvideAssemblyFilterAttribute("Vsip.*, Version=*, Culture=*, PublicKeyToken=*")]
    public sealed class ToolboxConfig : IConfigureToolboxItem 

.NET Framework Security

See Also

Reference

ProvideAssemblyFilterAttribute Class

Microsoft.VisualStudio.Shell Namespace

ProvideAssemblyFilterAttribute

AssemblyName

IConfigureToolboxItem

ToolboxItem

ProvideAssemblyFilterAttribute

Other Resources

Toolbox (Visual Studio SDK)