# OpcTimedShelveMethodNode.TimedShelveExCallback Delegate

<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>
</dl>

Transitions the alarm condition into the timed shelved state.

## Syntax

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

```csharp
public delegate void OpcTimedShelveMethodNode.TimedShelveExCallback(
    OpcMethodContext context,
    double duration)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Delegate Sub OpcTimedShelveMethodNode.TimedShelveExCallback(
    context As OpcMethodContext,
    duration As Double)
```

</div>

## Parameters

| Name | Type | Description |
|---|---|---|
| `context` | [OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/) | The [OpcMethodContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmethodcontext/) to use when shelving the alarm. This instance will be also updated with the outcome of the method call. |
| `duration` | [Double](https://learn.microsoft.com/dotnet/api/system.double) | A fixed time for which the alarm is to be shelved. The server may refuse the provided duration. If a max time shelved property exist on the alarm than the shelving time shall be less than or equal to the value of this property. |

## Remarks

This method does provide the following [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) information:

- [BadConditionAlreadyShelved](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badconditionalreadyshelved)The alarm is already in timed shelved state and the system does not allow a reset of the shelved timer.
- [BadShelvingTimeOutOfRange](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscode/#badshelvingtimeoutofrange)

## Applies to

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