# OpcStateMachineTransitionAttribute Class

> Reference: Defines an unique transition from one state to another state a custom OpcStateMachineNode can perform.

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

Defines an unique transition from one state to another state a custom [OpcStateMachineNode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinenode/) can perform.

## Syntax

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

```csharp
public class OpcStateMachineTransitionAttribute : Attribute
```

</div>

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

```vbnet
<AttributeUsage(AttributeTargets.Class, AllowMultiple:=True)>
Public Class OpcStateMachineTransitionAttribute
    Inherits Attribute
```

</div>

## Inheritance

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

## Constructors

| Name | Description |
|---|---|
| [OpcStateMachineTransitionAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#opcstatemachinetransitionattribute)<span class="api-meta">4 overloads</span> | Initializes a new instance of the OpcStateMachineTransitionAttribute class using the `from` and `to` values of the transition to define. |

## Properties

| Name | Description |
|---|---|
| [From](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#from) | Gets a value uniquely identifying the state 'from' which the transition begins. |
| [FromName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#fromname) | Gets the unique name of the [From](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#from) state. |
| [Number](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#number) | Gets the unique number of the transition to define. |
| [To](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#to) | Gets a value uniquely identifying the state 'to' which the transition goes. |
| [ToName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#toname) | Gets the unique name of the [To](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatemachinetransitionattribute/members#to) state. |

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

## Applies to

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