TimeSeriesLibrary.TSLibrary.CloseConnection C# (CSharp) Method

CloseConnection() public method

Closes the connection identified with the given serial number. When the connection is closed, it is removed from the list of connections available to the time series library, and the serial number no longer refers to this connection.
public CloseConnection ( int connectionNumber ) : void
connectionNumber int The serial number of the connection to be closed
return void
        public void CloseConnection(int connectionNumber)
        {
            // all the logic is found in the TSConnection object.
            ConnxObject.CloseConnection(connectionNumber);
        }

Usage Example

Ejemplo n.º 1
0
 public void CloseConnection(int connectionNumber)
 {
     try
     {
         // let the sibling method in the wrapped TSLibrary object contain the logic
         TSLib.CloseConnection(connectionNumber);
     }
     catch (Exception e)
     {
         ErrorMessage = e.Message;
     }
 }