# OpcCertificateValidationFailedEventArgs Class

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcCertificateValidationFailedEventArgs Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides the event data for 'CertificateValidationFailed' events.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcCertificateValidationFailedEventArgs : EventArgs
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcCertificateValidationFailedEventArgs
    Inherits EventArgs
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) → **OpcCertificateValidationFailedEventArgs**

## Constructors

| Name | Description |
|---|---|
| [OpcCertificateValidationFailedEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#opccertificatevalidationfailedeventargs) | Initializes a new instance of the OpcCertificateValidationFailedEventArgs class using the event data specified. |

## Properties

| Name | Description |
|---|---|
| [Accept](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#accept) | Gets or sets a value indicating whether to accept the [Certificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#certificate) independent from the [Result](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#result) of the certificate validation. |
| [Certificate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#certificate) | Gets the certificate its validation has failed. |
| [Result](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#result) | Gets a value indicating the outcome of the certificate validation. |
| [ResultInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#resultinfo) | Gets the information used to represent the [Result](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#result) in case there an exception is to be thrown. |

## Methods

| Name | Description |
|---|---|
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccertificatevalidationfailedeventargs/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the current OpcCertificateValidationFailedEventArgs. |

Inherits members from [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs).

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
