AssemblyKeyNameAttribute Class
Collapse the table of content
Expand the table of content

AssemblyKeyNameAttribute Class

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

For a list of all members of this type, see AssemblyKeyNameAttribute Members.


[Visual Basic]
NotInheritable Public Class AssemblyKeyNameAttribute
   Inherits Attribute
public sealed class AssemblyKeyNameAttribute : Attribute
public __gc __sealed class AssemblyKeyNameAttribute : public
class AssemblyKeyNameAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


When building a strong-named assembly, the author must supply either this attribute or 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 detail, see the specifications for the common language runtime architecture, metadata, Microsoft intermediate language instruction set, file format, and Microsoft intermediate language assembly reference in the "Tool Developers Guide" folder of the SDK.


Namespace: System.Reflection

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

AssemblyKeyNameAttribute Members | System.Reflection Namespace | Metadata and Self-Describing Components | Compiling to MSIL | Metadata Overview

© 2015 Microsoft