usingTDengineDriver;namespaceTDengineExample{internalclassConnectExample{staticvoidMain(String[]args){stringhost="localhost";shortport=6030;stringusername="root";stringpassword="taosdata";stringdbname="";varconn=TDengine.Connect(host,username,password,dbname,port);if(conn==IntPtr.Zero){Console.WriteLine("Connect to TDengine failed");}else{Console.WriteLine("Connect to TDengine success");}TDengine.Close(conn);TDengine.Cleanup();}}}