# OpcStatusCodeExtensions Members

> Reference: Provides extension methods to determine the severity of an OpcStatusCode.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcStatusCodeExtensions</a></dd>
<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>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Methods

### IsBad

<span class="api-meta">static</span>

Determines whether the severity of the status code specified is Bad.

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

```csharp
public static bool IsBad(this OpcStatusCode value)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Shared Function IsBad(value As OpcStatusCode) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | The status code to examine. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the severity of the `value` is Bad; otherwise the value false.

### IsGood

<span class="api-meta">static</span>

Determines whether the severity of the status code specified is Good.

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

```csharp
public static bool IsGood(this OpcStatusCode value)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Shared Function IsGood(value As OpcStatusCode) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | The status code to examine. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the severity of the `value` is Good; otherwise the value false.

### IsNotBad

<span class="api-meta">static</span>

Determines whether the severity of the status code specified is not Bad.

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

```csharp
public static bool IsNotBad(this OpcStatusCode value)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Shared Function IsNotBad(value As OpcStatusCode) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | The status code to examine. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the severity of the `value` is not Bad; otherwise the value false.

### IsNotGood

<span class="api-meta">static</span>

Determines whether the severity of the status code specified is not Good.

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

```csharp
public static bool IsNotGood(this OpcStatusCode value)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Shared Function IsNotGood(value As OpcStatusCode) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | The status code to examine. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the severity of the `value` is not Good; otherwise the value false.

### IsNotUncertain

<span class="api-meta">static</span>

Determines whether the severity of the status code specified is not Uncertain.

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

```csharp
public static bool IsNotUncertain(this OpcStatusCode value)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Shared Function IsNotUncertain(value As OpcStatusCode) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | The status code to examine. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the severity of the `value` is not Uncertain; otherwise the value false.

### IsUncertain

<span class="api-meta">static</span>

Determines whether the severity of the status code specified is Uncertain.

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

```csharp
public static bool IsUncertain(this OpcStatusCode value)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Shared Function IsUncertain(value As OpcStatusCode) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [OpcStatusCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/) | The status code to examine. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the severity of the `value` is Uncertain; otherwise the value false.
