QuickOPC User's Guide and Reference
PkiCertificate Constructor(String,String)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.Cryptography.PkiCertificates Namespace > PkiCertificate Class > PkiCertificate Constructor : PkiCertificate Constructor(String,String)
Initializes a new instance of the class using a certificate file name and a password used to access the certificate.
Syntax
'Declaration
 
Public Function New( _
   ByVal fileName As String, _
   ByVal password As String _
)
'Usage
 
Dim fileName As String
Dim password As String
 
Dim instance As New PkiCertificate(fileName, password)
public PkiCertificate( 
   string fileName,
   string password
)
public:
PkiCertificate( 
   String^ fileName,
   String^ password
)

Parameters

fileName
password
Exceptions
ExceptionDescription

An error occurred during a cryptographic operation.

This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also