# OpcStateMachineInitialStateAttribute Members

> Reference: Defines the initial state that a custom OpcStateMachineNode enters when it is activated.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcStateMachineInitialStateAttribute</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>
</dl>

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

## Constructors

### OpcStateMachineInitialStateAttribute

Initializes a new instance of the [OpcStateMachineInitialStateAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachineinitialstateattribute/) class using the `state` value to identify the initial state.

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

```csharp
public OpcStateMachineInitialStateAttribute(object state)
```

</div>

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

```vbnet
Public Sub New(state As Object)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `state` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | A numerical or enumeration value which is used to uniquely identify the state used as the initial state. |

## Properties

### State

Gets a value uniquely identifying the state used as the initial state.

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

```csharp
public object State { get; }
```

</div>

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

```vbnet
Public ReadOnly Property State As Object
```

</div>

**Property value**

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

An [object](https://learn.microsoft.com/dotnet/api/system.object) representing a numerical or enumeration value which is used to uniquely identify the state used as the initial state.
