# OpcServerState Enum

> Reference: Specifies the states of a server (see State).

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.server">Opc.UaFx.Server</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
</dl>

Specifies the states of a server (see [State](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverbase/members#state)).

## Syntax

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

```csharp
public enum OpcServerState
```

</div>

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

```vbnet
Public Enum OpcServerState
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype) → [Enum](https://learn.microsoft.com/dotnet/api/system.enum) → **OpcServerState**

## Fields

| Name | Value | Description |
|---|---|---|
| <a id="created"></a>`Created` | `0` | The server has been created and not yet been started. |
| <a id="started"></a>`Started` | `2` | The server has been started or resumed. |
| <a id="starting"></a>`Starting` | `1` | The server is being started or resumed. |
| <a id="stopped"></a>`Stopped` | `4` | The server has been stopped. |
| <a id="stopping"></a>`Stopping` | `3` | The server is being stopped. |
| <a id="suspended"></a>`Suspended`<span class="api-meta">since v2.11</span> | `6` | The server has been suspended. |
| <a id="suspending"></a>`Suspending`<span class="api-meta">since v2.11</span> | `5` | The server is being suspended. |

## Applies to

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