# OpcStateMachineTransitionsAttribute Class

> Reference: Defines unique transitions that a custom OpcStateMachineNode can perform using an enumeration type.

<span class="api-meta">since v2.29</span>

<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">OpcStateMachineTransitionsAttribute Members</a></dd>
</dl>

Defines unique transitions that a custom [OpcStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinenode/) can perform using an enumeration type.

## Syntax

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

```csharp
public class OpcStateMachineTransitionsAttribute : Attribute
```

</div>

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

```vbnet
<AttributeUsage(AttributeTargets.Class)>
Public Class OpcStateMachineTransitionsAttribute
    Inherits Attribute
```

</div>

## Inheritance

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

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [IsLoop](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionsattribute/members#isloop) | Gets or sets a value indicating whether the states defined in the [StatesType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionsattribute/members#statestype) can be reached in a loop. |
| [StatesType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionsattribute/members#statestype) | Gets the [Type](https://learn.microsoft.com/dotnet/api/system.type) which defines the different states used as the possible 'from' and 'to' states of the transitions to define. |

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

## Applies to

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