다음을 통해 공유


ProvideAssemblyFilterAttribute(String) Constructor

Definition

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

public:
 ProvideAssemblyFilterAttribute(System::String ^ assemblyFilter);
public:
 ProvideAssemblyFilterAttribute(Platform::String ^ assemblyFilter);
 ProvideAssemblyFilterAttribute(std::wstring const & assemblyFilter);
public ProvideAssemblyFilterAttribute (string assemblyFilter);
new Microsoft.VisualStudio.Shell.ProvideAssemblyFilterAttribute : string -> Microsoft.VisualStudio.Shell.ProvideAssemblyFilterAttribute
Public Sub New (assemblyFilter As String)

Parameters

assemblyFilter
String

[in] The full name of an assembly.

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   

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.

Applies to