# OpcResult 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">OpcResult Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides information indicating and describing the outcome of an operation.

## Syntax

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

```csharp
public class OpcResult
```

</div>

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

```vbnet
Public Class OpcResult
```

</div>

## Inheritance

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

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.icomparable">IComparable</a></li>
</ul>

## Derived types

- [OpcAddNodeResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddnoderesult/)
- [OpcTranslatePathResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctranslatepathresult/)

## Constructors

| Name | Description |
|---|---|
| [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#opcresult)<span class="api-meta">4 overloads</span> | Initializes a new instance of the OpcResult class using the `statusCode` specified. |

## Properties

| Name | Description |
|---|---|
| [Addition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#addition)<span class="api-meta">virtual</span> | Gets additional diagnostic/debugging information associated with the operation which provides the result represented. |
| [Code](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#code)<span class="api-meta">virtual</span> | Gets the [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) associated with the result. |
| [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#description)<span class="api-meta">virtual</span> | Gets the localized description of the result represented. |
| [InnerResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#innerresult) | Gets the OpcResult instance that caused the current result. |
| [IsBad](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#isbad)<span class="api-meta">virtual</span> | Gets a value indicating whether the result falls within the category bad. |
| [IsGood](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#isgood)<span class="api-meta">virtual</span> | Gets a value indicating whether the result falls within the category good. |
| [IsUncertain](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#isuncertain)<span class="api-meta">virtual</span> | Gets a value indicating whether the result falls within the category uncertain. |

## Methods

| Name | Description |
|---|---|
| [CompareTo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#compareto)<span class="api-meta">2 overloads</span> | Compares the current OpcResult with the `other`. |
| [Equals](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#equals)<span class="api-meta">2 overloads</span> | Determines whether the specified `other` is equal to this OpcResult. |
| [GetBaseResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#getbaseresult)<span class="api-meta">since v2.8</span> | Returns the OpcResult that is the root cause of one or more subsequent exceptions. |
| [GetHashCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#gethashcode)<span class="api-meta">override</span> | Retrieves a hash code for this OpcResult. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the current OpcResult. |

## Operators

| Name | Description |
|---|---|
| [Equality](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-equality)<span class="api-meta">static</span> | Returns a value indicating whether two instance of OpcResult are equal. |
| [Explicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-explicit)<span class="api-meta">static</span> | Converts a OpcResult to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.ServiceResult">ServiceResult</abbr> object. |
| [GreaterThan](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-greaterthan)<span class="api-meta">static</span> | Determines whether the first specified OpcResult object is greater than the second specified OpcResult object. |
| [GreaterThanOrEqual](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-greaterthanorequal)<span class="api-meta">static</span> | Determines whether the first specified OpcResult object is greater than or equal to the second specified OpcResult object. |
| [Implicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-implicit)<span class="api-meta">static · 27 overloads</span> | Converts a [bool](https://learn.microsoft.com/dotnet/api/system.boolean) to an OpcResult object. |
| [Inequality](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-inequality)<span class="api-meta">static</span> | Returns a value indicating whether two instances of OpcResult are not equal. |
| [LessThan](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-lessthan)<span class="api-meta">static</span> | Determines whether the first specified OpcResult object is less than the second specified OpcResult object. |
| [LessThanOrEqual](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/members#op-lessthanorequal)<span class="api-meta">static</span> | Determines whether the first specified OpcResult object is less than or equal to the second OpcResult object. |

## Applies to

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