Reference
OpcCertificateValidationFailedEventArgs Members
Provides the event data for 'CertificateValidationFailed' events.
Reference
OpcCertificateValidationFailedEventArgs Members
- Type
- OpcCertificateValidationFailedEventArgs
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from EventArgs.
Constructors
OpcCertificateValidationFailedEventArgs
Initializes a new instance of the OpcCertificateValidationFailedEventArgs class using the event data specified.
public OpcCertificateValidationFailedEventArgs(
X509Certificate2 certificate,
OpcCertificateValidationResult result,
OpcResult resultInfo)Public Sub New(
certificate As X509Certificate2,
result As OpcCertificateValidationResult,
resultInfo As OpcResult)Parameters
| Name | Type | Description |
|---|---|---|
certificate | X509Certificate2 | The X509Certificate2 instance providing the certificate data to validate/validated. |
result | Opc | The so far reached Opc |
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
| Exception | Condition |
|---|---|
| Argument | The certificate or resultInfo is a null reference ( |
Properties
Accept
Gets or sets a value indicating whether to accept the Certificate independent from the Result of the certificate validation.
public bool Accept { get; set; }Public Property Accept As BooleanProperty value
The value true to trust the Certificate; otherwise the value false. The default value is false.
Certificate
Gets the certificate its validation has failed.
public X509Certificate2 Certificate { get; }Public ReadOnly Property Certificate As X509Certificate2Property value
An instance of the X509Certificate2 class representing the certificate its validation has been failed.
Result
Gets a value indicating the outcome of the certificate validation.
public OpcCertificateValidationResult Result { get; }Public ReadOnly Property Result As OpcCertificateValidationResultProperty 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.
public OpcResult ResultInfo { get; }Public ReadOnly Property ResultInfo As OpcResultProperty value
The information associated with the Result which is used for any subsequently thrown exception.
Methods
ToString
Returns a string that represents the current OpcCertificateValidationFailedEventArgs.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string that represents the current OpcCertificateValidationFailedEventArgs including either the ResultInfo (if available) or the Result of the event data represented.
Overrides

