# OpcEngineeringUnitInfo Class

<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">OpcEngineeringUnitInfo Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides information to classify a value using codes for units of measurements.

## Syntax

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

```csharp
public class OpcEngineeringUnitInfo
```

</div>

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

```vbnet
<OpcDataType(887)>
Public Class OpcEngineeringUnitInfo
```

</div>

## Inheritance

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

## Remarks

The codes used should match the codes for units of measurements defined by the United Nations Centre for Trade Faciliation and Electronic Business (see UN/CEFACT: UNECE Recommendation N° 20). It uses and is based on the International System of Units (SI Units) but in addition provides a fixed code that can be used for automated evaluation. This recommendation has been accepted by many industries on a global basis.

An instance travels as the structure EUInformation (OPC 10000-8), also as the value of a variable or an argument of a method whose data type is the abstract Structure.

## Constructors

| Name | Description |
|---|---|
| [OpcEngineeringUnitInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#opcengineeringunitinfo)<span class="api-meta">7 overloads</span> | Initializes a new instance of the OpcEngineeringUnitInfo class. |

## Fields

| Name | Description |
|---|---|
| [DefaultNamespaceUri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#defaultnamespaceuri)<span class="api-meta">static</span> | Defines the default value used for the [NamespaceUri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#namespaceuri) property. |

## Properties

| Name | Description |
|---|---|
| [CommonCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#commoncode) | Gets the common code derived from the [UnitId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#unitid) of the engineering unit represented. |
| [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#description) | Gets or sets the full name of the engineering unit represented. |
| [DisplayName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#displayname) | Gets or sets the name of the engineering unit represented. |
| [HasUnitId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#hasunitid) | Gets a value indicating whether the engineering unit provides an according numeric identifier (see [UnitId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#unitid)) for programmatic evaluation. |
| [IsUndefined](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#isundefined) | Gets a value indicating whether the engineering unit does not provide any concrete information about the unit represented. |
| [NamespaceUri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#namespaceuri) | Gets or sets a value that identifies the organization (company, standards organization) that defines the OpcEngineeringUnitInfo represented. |
| [UnitId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#unitid) | Gets or sets the numeric identifier of the engineering unit. |

## Methods

| Name | Description |
|---|---|
| [GetCommonCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#getcommoncode)<span class="api-meta">static</span> | Retrieves the common code which is associated with the `unitId` specified. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the current OpcEngineeringUnitInfo. |

## Operators

| Name | Description |
|---|---|
| [Explicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#op-explicit)<span class="api-meta">static</span> | Converts a OpcEngineeringUnitInfo to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.EUInformation">EUInformation</abbr> object. |
| [Implicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcengineeringunitinfo/members#op-implicit)<span class="api-meta">static</span> | Converts a <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.EUInformation">EUInformation</abbr> to an OpcEngineeringUnitInfo object. |

## Applies to

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