> ## 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.

# OpenTD.Connection Class Reference

A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the marker specifies how to connect to the entity, e.g., which side of a surface to connect to.

## Public Member Functions

| Type | Name |
| - | - |
| | [Connection](#a721ab78ef0b9d7bc737119a78143c627) (string \_Handle, int \_Marker) |
| | [Connection](#a1bd46167a4f8d0fcdc7318ac728061b6) () Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class. |
| | [Connection](#ae1a2e5278de93d88cc374855bd453f38) (string \_Handle) Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class. |
| | [Connection](#a45efccbfe553d21ea9bbd88d51296e6b) ([DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_db_object.md) x) Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class. |
| | [Connection](#abdf1242dc264e7e2f5280726d23cf671) ([DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_db_object.md) x, int \_Marker) Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class. |
| bool | [IsEmpty](#a4b3a7f8b5f5bda96ea4930180e592c5b) () |
| bool | [IsDomainName](#affcf38ff0908430c35a64f62b4d20650) () |
| void | [SetDomainName](#a7e1e2d60c8bd7475de5747abc09a8733) (string domainName) |
| string | [GetDomainName](#a6b4c5b8ece597e8668a7412a265d7d41) () |
| override string | [ToString](#aeefed09cb51ce6dd6f6b2795480668b2) () |

## Static Public Member Functions

| Type | Name |
| - | - |
| static implicit | [operator Connection](#a6621f219d1292d0ffaee97bf40fb1d7d) (string handle) |
| static implicit | [operator Connection](#a735bc045e066e48550ad359e4c94f1c2) ([DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_db_object.md) x) |
| static implicit | [operator List\< Connection >](#a3d8a8a00db40cf7b1a045873514c3f8c) ([Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) x) Implicitly converts a single element into a one-element list. |

## Static Public Attributes

| Type | Name |
| - | - |
| static readonly [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) | [Empty](#ad4071b3fa60e3619a899f003e046b40a) = new [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md)("") |

## Properties

| Type | Name |
| - | - |
| string | [Handle](#a2513cfa5747a2567f68ec4f1591997c6)`[get, set]` |
| int | [Marker](#a0129abd66cc92f76d17dfd6c87ca4c2c)`[get, set]` |

## Detailed Description

A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the marker specifies how to connect to the entity, e.g., which side of a surface to connect to.

## Constructor & Destructor Documentation

### Connection() \[1/5]

```csharp theme={null}
OpenTD.Connection.Connection(
    string _Handle,
    int _Marker
)
```

`inline`

### Connection() \[2/5]

```csharp theme={null}
OpenTD.Connection.Connection()
```

`inline`

Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class.

### Connection() \[3/5]

```csharp theme={null}
OpenTD.Connection.Connection(string _Handle)
```

`inline`

Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class.

**Parameters**

| Name | Description |
| - | - |
| \_Handle | AutoCAD handle. |

### Connection() \[4/5]

```csharp theme={null}
OpenTD.Connection.Connection(DbObject x)
```

`inline`

Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class.

**Parameters**

| Name | Description |
| - | - |
| x | Gets the AutoCAD handle from this [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_db_object.md). |

**See also**

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

### Connection() \[5/5]

```csharp theme={null}
OpenTD.Connection.Connection(
    DbObject x,
    int _Marker
)
```

`inline`

Initializes a new instance of the [Connection](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_connection.md) class.

**Parameters**

| Name | Description |
| - | - |
| x | Gets the AutoCAD handle from this [DbObject](https://developer.synopsys.com/docs/thermal-desktop/opentd-net8-reference/class_open_t_d_1_1_db_object.md). |
| \_Marker | The marker specifies how to connect to the entity. |

**See also**

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

## Member Function Documentation

### GetDomainName()

```csharp theme={null}
string OpenTD.Connection.GetDomainName()
```

`inline`

### IsDomainName()

```csharp theme={null}
bool OpenTD.Connection.IsDomainName()
```

`inline`

### IsEmpty()

```csharp theme={null}
bool OpenTD.Connection.IsEmpty()
```

`inline`

### operator Connection() \[1/2]

```csharp theme={null}
static implicit OpenTD.Connection.operator Connection(DbObject x)
```

`inline` `static`

### operator Connection() \[2/2]

```csharp theme={null}
static implicit OpenTD.Connection.operator Connection(string handle)
```

`inline` `static`

### operator List\< Connection >()

```csharp theme={null}
static implicit OpenTD.Connection.operator List< Connection >(Connection x)
```

`inline` `static`

Implicitly converts a single element into a one-element list.

### SetDomainName()

```csharp theme={null}
void OpenTD.Connection.SetDomainName(string domainName)
```

`inline`

### ToString()

```csharp theme={null}
override string OpenTD.Connection.ToString()
```

`inline`

## Member Data Documentation

### Empty

```csharp theme={null}
readonly Connection OpenTD.Connection.Empty = new Connection ("")
```

`static`

## Property Documentation

### Handle

```csharp theme={null}
string OpenTD.Connection.Handle
```

`get` `set`

### Marker

```csharp theme={null}
int OpenTD.Connection.Marker
```

`get` `set`

The documentation for this class was generated from the following file:

* C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/OpenTD/OpenTD/**Connection.cs**
