Initializes a new PrivateKeyFile instance.

Namespace: Org.Mentalis.Security.Tools
Assembly:   Org.Mentalis.Security.Tools (in Org.Mentalis.Security.Tools)
Version: 1.0.0.0

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	pvkFile As String, _
	password As String _
)
C#
public PrivateKeyFile (
	string pvkFile,
	string password
)
Visual C++
public:
PrivateKeyFile (
	String^ pvkFile, 
	String^ password
)

Parameters

pvkFile
System.String
The file to load.
password
System.String
The password, if any.

Exceptions

ExceptionCondition
System.ArgumentNullExceptionpvkFile is a null reference -or- a password is required and password is a null reference.
System.IO.FileNotFoundExceptionThe specified file could not be found.
System.Security.Cryptography.CryptographicExceptionAn error occurs while decrypting the file.
System.IO.InvalidDataExceptionThe file is invalid.