    

 ## On this page

  

 

 # OpenTD.Connection Class Reference

 Last update: 16.07.2025 

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. [More...](#details)

## <a id="pub-methods" name="pub-methods"></a>Public Member Functions

 [Connection](#a721ab78ef0b9d7bc737119a78143c627) (string \_Handle, int \_Marker)  [Connection](#a1bd46167a4f8d0fcdc7318ac728061b6) () Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.   
  [Connection](#ae1a2e5278de93d88cc374855bd453f38) (string \_Handle) Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.   
  [Connection](#a45efccbfe553d21ea9bbd88d51296e6b) ([DbObject](class_open_t_d_1_1_db_object.xhtml) x) Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.   
  [Connection](#abdf1242dc264e7e2f5280726d23cf671) ([DbObject](class_open_t_d_1_1_db_object.xhtml) x, int \_Marker) Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.   
 bool [IsEmpty](#a4b3a7f8b5f5bda96ea4930180e592c5b) () bool [IsDomainName](#affcf38ff0908430c35a64f62b4d20650) () void [SetDomainName](#a7e1e2d60c8bd7475de5747abc09a8733) (string domainName) string [GetDomainName](#a6b4c5b8ece597e8668a7412a265d7d41) () override string [ToString](#aeefed09cb51ce6dd6f6b2795480668b2) () ## <a id="pub-static-methods" name="pub-static-methods"></a>Static Public Member Functions

static implicit [operator Connection](#a6621f219d1292d0ffaee97bf40fb1d7d) (string handle) static implicit [operator Connection](#a735bc045e066e48550ad359e4c94f1c2) ([DbObject](class_open_t_d_1_1_db_object.xhtml) x) static implicit [operator List&lt; Connection &gt;](#a3d8a8a00db40cf7b1a045873514c3f8c) ([Connection](class_open_t_d_1_1_connection.xhtml) x) Implicitly converts a single element into a one-element list.   
 ## <a id="pub-static-attribs" name="pub-static-attribs"></a>Static Public Attributes

static readonly [Connection](class_open_t_d_1_1_connection.xhtml) [Empty](#ad4071b3fa60e3619a899f003e046b40a) = new [Connection](class_open_t_d_1_1_connection.xhtml)("") ## <a id="properties" name="properties"></a>Properties

string [Handle](#a2513cfa5747a2567f68ec4f1591997c6)` [get, set]` int [Marker](#a0129abd66cc92f76d17dfd6c87ca4c2c)` [get, set]` <a id="details" name="details"></a>## 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 &amp; Destructor Documentation

<a id="a721ab78ef0b9d7bc737119a78143c627" name="a721ab78ef0b9d7bc737119a78143c627"></a>## [◆ ](#a721ab78ef0b9d7bc737119a78143c627)Connection() \[1/5\]

 OpenTD.Connection.Connection  ( string *\_Handle*,    int *\_Marker* )  inline 





<a id="a1bd46167a4f8d0fcdc7318ac728061b6" name="a1bd46167a4f8d0fcdc7318ac728061b6"></a>## [◆ ](#a1bd46167a4f8d0fcdc7318ac728061b6)Connection() \[2/5\]

 OpenTD.Connection.Connection  ( )   inline 

Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.





<a id="ae1a2e5278de93d88cc374855bd453f38" name="ae1a2e5278de93d88cc374855bd453f38"></a>## [◆ ](#ae1a2e5278de93d88cc374855bd453f38)Connection() \[3/5\]

 OpenTD.Connection.Connection  ( string *\_Handle*)   inline 

Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.

Parameters \_HandleAutoCAD handle.



<a id="a45efccbfe553d21ea9bbd88d51296e6b" name="a45efccbfe553d21ea9bbd88d51296e6b"></a>## [◆ ](#a45efccbfe553d21ea9bbd88d51296e6b)Connection() \[4/5\]

 OpenTD.Connection.Connection  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *x*)   inline 

Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.

Parameters xGets the AutoCAD handle from this [DbObject](class_open_t_d_1_1_db_object.xhtml "Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles.").See also[OpenTD.DbObject](class_open_t_d_1_1_db_object.xhtml "Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles.")



<a id="abdf1242dc264e7e2f5280726d23cf671" name="abdf1242dc264e7e2f5280726d23cf671"></a>## [◆ ](#abdf1242dc264e7e2f5280726d23cf671)Connection() \[5/5\]

 OpenTD.Connection.Connection  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *x*,    int *\_Marker* )  inline 

Initializes a new instance of the [Connection](class_open_t_d_1_1_connection.xhtml "A connection contains a handle and a marker. The handle uniquely identifies a TD entity while the mar...") class.

Parameters xGets the AutoCAD handle from this [DbObject](class_open_t_d_1_1_db_object.xhtml "Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles.").\_MarkerThe marker specifies how to connect to the entity.See also[OpenTD.DbObject](class_open_t_d_1_1_db_object.xhtml "Base class for objects stored in the AutoCAD database and uniquely-identified by AutoCAD handles.")



## Member Function Documentation

<a id="a6b4c5b8ece597e8668a7412a265d7d41" name="a6b4c5b8ece597e8668a7412a265d7d41"></a>## [◆ ](#a6b4c5b8ece597e8668a7412a265d7d41)GetDomainName()

 string OpenTD.Connection.GetDomainName  ( )   inline 





<a id="affcf38ff0908430c35a64f62b4d20650" name="affcf38ff0908430c35a64f62b4d20650"></a>## [◆ ](#affcf38ff0908430c35a64f62b4d20650)IsDomainName()

 bool OpenTD.Connection.IsDomainName  ( )   inline 





<a id="a4b3a7f8b5f5bda96ea4930180e592c5b" name="a4b3a7f8b5f5bda96ea4930180e592c5b"></a>## [◆ ](#a4b3a7f8b5f5bda96ea4930180e592c5b)IsEmpty()

 bool OpenTD.Connection.IsEmpty  ( )   inline 





<a id="a735bc045e066e48550ad359e4c94f1c2" name="a735bc045e066e48550ad359e4c94f1c2"></a>## [◆ ](#a735bc045e066e48550ad359e4c94f1c2)operator Connection() \[1/2\]

 static implicit OpenTD.Connection.operator [Connection](class_open_t_d_1_1_connection.xhtml)  ( [DbObject](class_open_t_d_1_1_db_object.xhtml) *x*)   inlinestatic 





<a id="a6621f219d1292d0ffaee97bf40fb1d7d" name="a6621f219d1292d0ffaee97bf40fb1d7d"></a>## [◆ ](#a6621f219d1292d0ffaee97bf40fb1d7d)operator Connection() \[2/2\]

 static implicit OpenTD.Connection.operator [Connection](class_open_t_d_1_1_connection.xhtml)  ( string *handle*)   inlinestatic 





<a id="a3d8a8a00db40cf7b1a045873514c3f8c" name="a3d8a8a00db40cf7b1a045873514c3f8c"></a>## [◆ ](#a3d8a8a00db40cf7b1a045873514c3f8c)operator List&lt; Connection &gt;()

 static implicit OpenTD.Connection.operator List&lt; [Connection](class_open_t_d_1_1_connection.xhtml) &gt;  ( [Connection](class_open_t_d_1_1_connection.xhtml) *x*)   inlinestatic 

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





<a id="a7e1e2d60c8bd7475de5747abc09a8733" name="a7e1e2d60c8bd7475de5747abc09a8733"></a>## [◆ ](#a7e1e2d60c8bd7475de5747abc09a8733)SetDomainName()

 void OpenTD.Connection.SetDomainName  ( string *domainName*)   inline 





<a id="aeefed09cb51ce6dd6f6b2795480668b2" name="aeefed09cb51ce6dd6f6b2795480668b2"></a>## [◆ ](#aeefed09cb51ce6dd6f6b2795480668b2)ToString()

 override string OpenTD.Connection.ToString  ( )   inline 





## Member Data Documentation

<a id="ad4071b3fa60e3619a899f003e046b40a" name="ad4071b3fa60e3619a899f003e046b40a"></a>## [◆ ](#ad4071b3fa60e3619a899f003e046b40a)Empty

 readonly [Connection](class_open_t_d_1_1_connection.xhtml) OpenTD.Connection.Empty = new [Connection](class_open_t_d_1_1_connection.xhtml)("")  static 





## Property Documentation

<a id="a2513cfa5747a2567f68ec4f1591997c6" name="a2513cfa5747a2567f68ec4f1591997c6"></a>## [◆ ](#a2513cfa5747a2567f68ec4f1591997c6)Handle

 string OpenTD.Connection.Handle  getset 





<a id="a0129abd66cc92f76d17dfd6c87ca4c2c" name="a0129abd66cc92f76d17dfd6c87ca4c2c"></a>## [◆ ](#a0129abd66cc92f76d17dfd6c87ca4c2c)Marker

 int OpenTD.Connection.Marker  getset 





---

The documentation for this class was generated from the following file:- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/**Connection.cs**