Share via


AssemblyKeyFileAttribute Constructor

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

Initializes a new instance of the AssemblyKeyFileAttribute class with the name of the file containing the key pair to generate a strong name for the assembly being attributed.

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

Syntax

'Declaration
Public Sub New ( _
    keyFile As String _
)
public AssemblyKeyFileAttribute(
    string keyFile
)
public:
AssemblyKeyFileAttribute(
    String^ keyFile
)
new : 
        keyFile:string -> AssemblyKeyFileAttribute
public function AssemblyKeyFileAttribute(
    keyFile : String
)

Parameters

Remarks

There is no default path for the AssemblyKeyFileAttribute constructor. The value set by the constructor is interpreted by the linker, or by Microsoft Visual Studio 2005, that invokes the linker.

The default setting for the Assembly Linker (Al.exe) tool assumes that the key file is in the current directory.

Warning

Because the path and file name persist, ensure that the string you use with AssemblyKeyFileAttribute does not contain sensitive information.

.NET Framework Security

See Also

Reference

AssemblyKeyFileAttribute Class

System.Reflection Namespace