This documentation is archived and is not being maintained.

AssemblyKeyFileAttribute Constructor

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.

[Visual Basic]
Public Sub New( _
   ByVal keyFile As String _
public AssemblyKeyFileAttribute(
   string keyFile
public: AssemblyKeyFileAttribute(
   String* keyFile
public function AssemblyKeyFileAttribute(
   keyFile : String


The name of the file containing the key pair.


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


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

See Also

AssemblyKeyFileAttribute Class | AssemblyKeyFileAttribute Members | System.Reflection Namespace