> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class DataItemIdentifier

Namespace: [OpenTD.Results.Dataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset)\
Assembly: OpenTD.Results.dll

Identifies a data subtype (T, TL, PL, etc.) -- with an optional fluid
constituent (A, B, W, etc.) -- associated with an "item"
(an entity (node, lump, etc.), register, record number, etc.), e.g.,
MAIN.T6, FLOW\.PL100, FLOW\.GTA10, MYREGISTER DIMENSIONLESS.
Note: the Units member is only applicable to registers. If null,
default units will be assumed.

```csharp theme={null}
public class DataItemIdentifier
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[DataItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataItemIdentifier.md)

## Inherited Members

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone),
[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Constructors

### DataItemIdentifier(ItemIdentifier, DataSubtype, UnitsData)

Use this ctor to combine an ItemIdentifier (MAIN.6, MYREGISTER)
with a DataSubtype (T, DIMENSIONLESS) to create a DataItemIdentifier
(MAIN.T6, MYREGISTER DIMENSIONLESS).

```csharp theme={null}
public DataItemIdentifier(ItemIdentifier itemIdentifier, DataSubtype subtype = null, UnitsData units = null)
```

#### Parameters

`itemIdentifier` [ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.ItemIdentifier.md)

`subtype` [DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataSubtype.md)

`units` UnitsData

#### Exceptions

OpenTDException

### DataItemIdentifier(string, UnitsData, IDataset)

Constructs a DataItemIdentifier from a string like "MAIN.T6" or "MY\_REGISTER2".
Registers are assumed dimensionless unless registerUnits parameter is set.
Use "MY\_UDFA.MAIN.6" to refer to an entity-length UDFA.
Use "MY\_UDFA.4" to refer to one array in a user-length UDFA.
UDFAdataset must be set to correctly determine the characteristics of any UDFA's.
(Otherwise the parser doesn't know if MY\_UDFA.FLOW\.3 is for lumps, paths, etc.)

```csharp theme={null}
public DataItemIdentifier(string sindaName, UnitsData registerUnits = null, IDataset UDFAdataset = null)
```

#### Parameters

`sindaName` [string](https://learn.microsoft.com/dotnet/api/system.string)

`registerUnits` UnitsData

`UDFAdataset` [IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.IDataset.md)

### DataItemIdentifier(string, UnitsData, IEnumerable\<string>, IEnumerable\<string>)

Deprecated. Do not use this DataItemIdentifier ctor.

```csharp theme={null}
public DataItemIdentifier(string sindaName, UnitsData units, IEnumerable<string> thermalSubs, IEnumerable<string> fluidSubs)
```

#### Parameters

`sindaName` [string](https://learn.microsoft.com/dotnet/api/system.string)

`units` UnitsData

`thermalSubs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

`fluidSubs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

## Properties

### ItemIdentifier

```csharp theme={null}
public ItemIdentifier ItemIdentifier { get; }
```

#### Property Value

[ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.ItemIdentifier.md)

### Subtype

```csharp theme={null}
public DataSubtype Subtype { get; }
```

#### Property Value

[DataSubtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataSubtype.md)

### Units

```csharp theme={null}
public UnitsData Units { get; }
```

#### Property Value

UnitsData

## Methods

### Equals(object)

Determines whether the specified object is equal to the current object.

```csharp theme={null}
public override bool Equals(object obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The object to compare with the current object.

#### Returns

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

[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the specified object  is equal to the current object; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

### GetHashCode()

Serves as the default hash function.

```csharp theme={null}
public override int GetHashCode()
```

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

A hash code for the current object.

### ToString()

Returns a string that represents the current object.

```csharp theme={null}
public override string ToString()
```

#### Returns

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

A string that represents the current object.

## Operators

### operator ==(DataItemIdentifier, DataItemIdentifier)

```csharp theme={null}
public static bool operator ==(DataItemIdentifier x1, DataItemIdentifier x2)
```

#### Parameters

`x1` [DataItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataItemIdentifier.md)

`x2` [DataItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataItemIdentifier.md)

#### Returns

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

### operator !=(DataItemIdentifier, DataItemIdentifier)

```csharp theme={null}
public static bool operator !=(DataItemIdentifier x1, DataItemIdentifier x2)
```

#### Parameters

`x1` [DataItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataItemIdentifier.md)

`x2` [DataItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net8-reference/OpenTD.Results.Dataset.DataItemIdentifier.md)

#### Returns

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