Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcCertificateValidationFailedEventArgs type exposes the following members.
Initializes a new instance of the OpcCertificateValidationFailedEventArgs class using the event data specified.
C#
public OpcCertificateValidationFailedEventArgs(X509Certificate2 certificate, OpcCertificateValidationResult result, OpcResult resultInfo)
Parameters
certificate
Cryptography.X509Certificates.X509Certificate2
The Cryptography.X509Certificates.X509Certificate2 instance providing the certificate data to validate/validated.
result
OpcCertificateValidationResult
The so far reached OpcCertificateValidationResult which indicates the reason, why the validation of the certificate failed.
resultInfo
OpcResult
The OpcResult which provides additional information about the result
. This information is also used in case of an un-accepted certificate for an exception.
Exceptions
The certificate
or resultInfo
is a null reference (Nothing in Visual Basic).
Gets or sets a value indicating whether to accept the Certificate independent from the Result of the certificate validation.
C#
public bool Accept { get; set; }
Property Value
The value true to trust the Certificate; otherwise the value false. The default value is false.
Gets the certificate its validation has failed.
C#
public X509Certificate2 Certificate { get; }
Property Value
Cryptography.X509Certificates.X509Certificate2
An instance of the Cryptography.X509Certificates.X509Certificate2 class representing the certificate its validation has been failed.
Gets a value indicating the outcome of the certificate validation.
C#
public OpcCertificateValidationResult Result { get; }
Property Value
OpcCertificateValidationResult
One of the members defined by the OpcCertificateValidationResult enumeration.
Returns a string that represents the current OpcCertificateValidationFailedEventArgs.
C#
public override string ToString()
Returns
A string that represents the current OpcCertificateValidationFailedEventArgs including either the ResultInfo (if available) or the Result of the event data represented.