Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- keyFile
Type: System. . :: . .String
The name of the file containing the key pair.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.