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 _ ) |
C# |
---|
public PrivateKeyFile ( string pvkFile ) |
Visual C++ |
---|
public: PrivateKeyFile ( String^ pvkFile ) |
Parameters
- pvkFile
- System.String
The file to load.
Exceptions
Exception | Condition |
---|---|
System.ArgumentNullException | pvkFile is a null reference -or- a password is required. |
System.IO.FileNotFoundException | The specified file could not be found. |
System.Security.Cryptography.CryptographicException | An error occurs while decrypting the file. |
System.IO.InvalidDataException | The file is invalid. |