# OpcAggregate Members

> Reference: Provides methods to map the aggregates defined by OpcAggregateType to the identifiers of their aggregate function objects.

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

## Methods

### GetTypeId

<span class="api-meta">static</span>

Determines the identifier of the aggregate function object of the aggregate specified.

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

```csharp
public static OpcNodeId GetTypeId(OpcAggregateType type)
```

</div>

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

```vbnet
Public Shared Function GetTypeId(type As OpcAggregateType) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `type` | [OpcAggregateType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregatetype/) | One of the members defined by the [OpcAggregateType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregatetype/) enumeration which identifies the aggregate. |

**Returns**

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

The identifier of the aggregate function object of the aggregate (see [AggregateFunction](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcobjecttypes/members#aggregatefunction)).

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `type` is not a member defined by the [OpcAggregateType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaggregatetype/) enumeration. |
