System.Reflection.AssemblyKeyNameAttribute Class

Specifies the name of a key container within the CSP containing the key pair used to generate a strong name.

See Also: AssemblyKeyNameAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Assembly, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AssemblyKeyNameAttribute : Attribute

Remarks

When building a strong-named assembly, the author must supply either this attribute or System.Reflection.AssemblyKeyFileAttribute.

An example of the syntax is [assembly:AssemblyKeyNameAttribute("myContainer")].

The classes in System.Runtime.CompilerServices are intended for use by compilers only. Do not use them unless you are building a compiler.

For more information, see the Common Language Infrastructure (CLI) documentation, especially "Partition II: Metadata Definition and Semantics". The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0