# OpcAggregateConfiguration Members

> Reference: Represents the configuration of the aggregate calculation of a request for processed history data, as defined by the AggregateConfiguration of OPC UA (see AggregateConfiguration).

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

## Properties

### PercentDataBad

Gets or sets a value which indicates the minimum percentage of bad data in a given interval required for the status code for the given interval to be set to bad.

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

```csharp
public byte PercentDataBad { get; set; }
```

</div>

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

```vbnet
Public Property PercentDataBad As Byte
```

</div>

**Property value**

[Byte](https://learn.microsoft.com/dotnet/api/system.byte)

The minimum percentage of bad data in an interval.

**Remarks**

The value is used only if [UseServerCapabilitiesDefaults](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregateconfiguration/members#useservercapabilitiesdefaults) is false.

### PercentDataGood

Gets or sets a value which indicates the minimum percentage of good data in a given interval required for the status code for the given interval to be set to good.

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

```csharp
public byte PercentDataGood { get; set; }
```

</div>

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

```vbnet
Public Property PercentDataGood As Byte
```

</div>

**Property value**

[Byte](https://learn.microsoft.com/dotnet/api/system.byte)

The minimum percentage of good data in an interval.

**Remarks**

The value is used only if [UseServerCapabilitiesDefaults](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregateconfiguration/members#useservercapabilitiesdefaults) is false.

### TreatUncertainAsBad

Gets or sets a value indicating whether the server treats data with a status code of the severity uncertain like bad data in the aggregate calculation.

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

```csharp
public bool TreatUncertainAsBad { get; set; }
```

</div>

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

```vbnet
Public Property TreatUncertainAsBad As Boolean
```

</div>

**Property value**

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

The value true if data with the severity uncertain is treated like bad data; otherwise the value false, then it is treated like good data unless the aggregate definition says otherwise.

**Remarks**

The value is used only if [UseServerCapabilitiesDefaults](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregateconfiguration/members#useservercapabilitiesdefaults) is false.

### UseServerCapabilitiesDefaults

Gets or sets a value indicating whether the server uses its own default aggregate configuration instead of the values of this configuration.

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

```csharp
public bool UseServerCapabilitiesDefaults { get; set; }
```

</div>

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

```vbnet
Public Property UseServerCapabilitiesDefaults As Boolean
```

</div>

**Property value**

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

The value true if the server uses its default configuration and ignores the other values of this configuration; otherwise the value false.

### UseSlopedExtrapolation

Gets or sets a value indicating whether the server extrapolates data sloped when no boundary value exists (i.e. when extrapolating into the future from the last known value).

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

```csharp
public bool UseSlopedExtrapolation { get; set; }
```

</div>

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

```vbnet
Public Property UseSlopedExtrapolation As Boolean
```

</div>

**Property value**

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

The value true if the server projects the value using sloped extrapolation; otherwise the value false, then the server uses stepped extrapolation and holds the last known value constant.

**Remarks**

The value is used only if [UseServerCapabilitiesDefaults](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregateconfiguration/members#useservercapabilitiesdefaults) is false.
