# OpcAlarmCondition Members

> Reference: Represents a snapshot of a 'Opc.UaFx.OpcAlarmConditionNode'.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcAlarmCondition</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>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [OpcAcknowledgeableCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcacknowledgeablecondition/members), [OpcCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccondition/members), [OpcEvent](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcevent/members).

## Constructors

### OpcAlarmCondition

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

Initializes a new instance of the [OpcAlarmCondition](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcalarmcondition/) class using the `dataStore` specified.

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

```csharp
public OpcAlarmCondition(IOpcReadOnlyNodeDataStore dataStore)
```

</div>

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

```vbnet
Public Sub New(dataStore As IOpcReadOnlyNodeDataStore)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `dataStore` | [IOpcReadOnlyNodeDataStore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcreadonlynodedatastore/) | The [IOpcReadOnlyNodeDataStore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcreadonlynodedatastore/) of the 'Opc.UaFx.OpcAlarmConditionNode' to represent. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `dataStore` is a null reference (Nothing in Visual Basic). |

## Properties

### InputNodeId

Gets an identifier which represents the node identifier of the variable the value of which is used as primary input in the calculation of the alarm state.

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

```csharp
public OpcNodeId InputNodeId { get; }
```

</div>

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

```vbnet
Public ReadOnly Property InputNodeId As OpcNodeId
```

</div>

**Property value**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

If this variable is not in the address space, [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#null) is provided. For more information see 'Opc.UaFx.OpcAlarmConditionNode.InputNodeId'.

### IsActive

Gets a value indicating whether the alarm situation represented currently exists.

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

```csharp
public bool IsActive { get; }
```

</div>

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

```vbnet
Public ReadOnly Property IsActive As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

A value indicating whether the alarm situation represented currently exists. For more information see 'Opc.UaFx.OpcAlarmConditionNode.IsActive'.

### IsSuppressed

Gets a value indicating whether the alarm is suppressed due to system specific reasons.

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

```csharp
public bool IsSuppressed { get; }
```

</div>

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

```vbnet
Public ReadOnly Property IsSuppressed As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value is used internally by the server to automatically suppress alarms due to system specific reasons. For more information 'Opc.UaFx.OpcAlarmConditionNode.IsSuppressed'.

### IsSuppressedOrShelved

Gets a value indicating whether the alarm is either in the [IsSuppressed](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcalarmcondition/members#issuppressed) or shelved.

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

```csharp
public bool IsSuppressedOrShelved { get; }
```

</div>

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

```vbnet
Public ReadOnly Property IsSuppressedOrShelved As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the alarm is either in the [IsSuppressed](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcalarmcondition/members#issuppressed) or shelved; otherwise (if both are not present) the value false. For more information see 'Opc.UaFx.OpcAlarmConditionNode.IsSuppressedOrShelved'.

### MaxTimeShelved

Gets the maximum time that the alarm condition may be shelved.

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

```csharp
public double MaxTimeShelved { get; }
```

</div>

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

```vbnet
Public ReadOnly Property MaxTimeShelved As Double
```

</div>

**Property value**

[Double](https://learn.microsoft.com/dotnet/api/system.double)

The value is expressed as duration. Systems can use this property to prevent permanent shelving of an alarm. For more information see 'Opc.UaFx.OpcAlarmConditionNode.MaxTimeShelved'.
