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 _
)
[C#]
public AssemblyKeyFileAttribute(
   string keyFile
);
[C++]
public: AssemblyKeyFileAttribute(
   String* keyFile
);
[JScript]
public function AssemblyKeyFileAttribute(
   keyFile : String
);

Parameters

keyFile
The name of the file containing the key pair.

Remarks

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

Requirements

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

Show: