/// <summary> /// Connects the server to the database and sets the handle /// </summary> public int Connect() { this.handle = TM1API.TM1SystemServerConnect(pool.handle, vServerName, vClientName, vPassword); if (TM1API.IsError(this.user.handle, this.handle)) { throw new ServerConnectionException(); } /// if necessary cubes and dimensions can be stored /// SetDimensions(); SetCubes();// /// ---------------------------------------------- /// return(this.handle); }