OPC Studio User's Guide and Reference
PkiCertificate Constructor(String,SecureString)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.Cryptography.PkiCertificates Namespace > PkiCertificate Class > PkiCertificate Constructor : PkiCertificate Constructor(String,SecureString)

The value of this parameter cannot be null (Nothing in Visual Basic).

The value of this parameter can be null (Nothing in Visual Basic).

Initializes a new instance of the class using a certificate file name and a password.
Syntax
'Declaration
 
Public Function New( _
   ByVal fileName As String, _
   ByVal password As SecureString _
)
'Usage
 
Dim fileName As String
Dim password As SecureString
 
Dim instance As New PkiCertificate(fileName, password)
public PkiCertificate( 
   string fileName,
   SecureString password
)
public:
PkiCertificate( 
   String^ fileName,
   SecureString^ password
)

Parameters

fileName

The value of this parameter cannot be null (Nothing in Visual Basic).

password

The value of this parameter can be null (Nothing in Visual Basic).

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