OpcCertificateValidationFailedEventArgs Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcCertificateValidationFailedEventArgs type exposes the following members.

OpcCertificateValidationFailedEventArgs(X509Certificate2, OpcCertificateValidationResult, OpcResult)

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

ArgumentNullException

The certificate or resultInfo is a null reference (Nothing in Visual Basic).

Accept

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

Boolean

The value true to trust the Certificate; otherwise the value false. The default value is false.

Certificate

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.

Result

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.

ResultInfo

Gets the information used to represent the Result in case there an exception is to be thrown.

C#

public OpcResult ResultInfo { get; }


Property Value

OpcResult

The information associated with the Result which is used for any subsequently thrown exception.

ToString()

Returns a string that represents the current OpcCertificateValidationFailedEventArgs.

C#

public override string ToString()


Returns

String

A string that represents the current OpcCertificateValidationFailedEventArgs including either the ResultInfo (if available) or the Result of the event data represented.