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


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


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:// on MSDN and tp:// on the Ecma International Web site.


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