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
'Déclaration
Public Sub New ( _
assemblyFilter As String _
)
'Utilisation
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
- 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
Reference
ProvideAssemblyFilterAttribute Class
ProvideAssemblyFilterAttribute Members
Microsoft.VisualStudio.Shell Namespace
ProvideAssemblyFilterAttribute
ProvideAssemblyFilterAttribute