AssemblyKeyNameAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

System..::..Object
  System..::..Attribute
    System.Reflection..::..AssemblyKeyNameAttribute

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

[AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class AssemblyKeyNameAttribute : Attribute

The AssemblyKeyNameAttribute type exposes the following members.

  NameDescription
Public methodAssemblyKeyNameAttributeInitializes a new instance of the AssemblyKeyNameAttribute class with the name of the container holding the key pair used to generate a strong name for the assembly being attributed.
Top

  NameDescription
Public propertyKeyNameGets the name of the container having the key pair that is used to generate a strong name for the attributed assembly.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

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