/// <summary> /// Initializes a new instance of the OlapStore class. /// </summary> /// <param name="userName">A user name to establish the client connection.</param> public OlapStore(string userName) { IntPointer lastError = new IntPointer(); _clientSlot = NativeOlapApi.ClientConnect(userName, lastError); if (_clientSlot == 0) { throw new OlapException("Client connect failed!", lastError.Value); } }