X509Certificate |
public void Import( string fileName, string password )
Exception | Condition |
---|---|
ArgumentNullException | fileName is null. -or- password is null. |
ArgumentException | fileName is a zero-length string, contains only white space, or contains one or more invalid characters. |
FileNotFoundException | The specified file could not be found. |
UnauthorizedAccessException | The user does not have access to read the specified file. |
IOException | An error occurred reading the file. |
Imports certificates and private keys from the specified pkcs12 stream.