Creates a new instance of a ProvideAssemblyFilterAttribute object on the basis of the assembly name provided.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.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
)
public function ProvideAssemblyFilterAttribute(
assemblyFilter : String
)
Parameters
assemblyFilter
Type: System.String[in] A string containing the full name of an assembly.
Remarks
Assembly specification in assemblyFilter can use the full assembly identification, including a simple name, a version number, a cryptographic key pair, and a supported culture: "Identification, Version=XXX, Culture=YYY, PublicKeyToken=ZZZ". For more information on assembly identification, see AssemblyName..
The "*" character in a specification is taken as a wildcard.
There must always be an Identification value in assemblyFilter, and it should include the assembly's namespace if that is included in the assembly's name, for instance Vsip.ItemConfiguration.
If other members of the assembly identification are not present, they are treated as wildcards. For example
"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 with a name of the form Vsip.*.
[ProvideAssemblyFilterAttribute("Vsip.*, Version=*, Culture=*, PublicKeyToken=*")]
public sealed class ToolboxConfig : IConfigureToolboxItem
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Concepts
Reference
ProvideAssemblyFilterAttribute Class
ProvideAssemblyFilterAttribute Members
Microsoft.VisualStudio.Shell Namespace