共用方式為


ProvideAssemblyFilterAttribute Constructor

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

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

'宣告
Public Sub New ( _
    assemblyFilter As String _
)
'用途
Dim assemblyFilter As String

Dim instance As New ProvideAssemblyFilterAttribute(assemblyFilter)
public ProvideAssemblyFilterAttribute(
    string assemblyFilter
)
public:
ProvideAssemblyFilterAttribute(
    String^ assemblyFilter
)
new : 
        assemblyFilter:string -> ProvideAssemblyFilterAttribute
public function ProvideAssemblyFilterAttribute(
    assemblyFilter : String
)

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

ProvideAssemblyFilterAttribute Members

Microsoft.VisualStudio.Shell Namespace

ProvideAssemblyFilterAttribute

AssemblyName

IConfigureToolboxItem

ToolboxItem

ProvideAssemblyFilterAttribute

Other Resources

Toolbox (Visual Studio SDK)