Exemplo n.º 1
0
        /// <summary>
        /// Deletes all values in the data area.
        /// </summary>
        public void DeleteValues()
        {
            MdsSetValueProlog();

            if (!NativeOlapApi.DataAreaDelete(_cube.Server.Store.ClientSlot, _cube.Server.ServerHandle, _parameters, _cube.Server.LastErrorInternal))
            {
                System.Text.StringBuilder sb = new System.Text.StringBuilder();
                sb.Append("The data area values could not be deleted!");
                sb.Append(", Error: ");
                sb.Append(System.Convert.ToString(_cube.Server.LastErrorInternal.Value));
                sb.Append(", ");
                sb.Append(ToString());
                throw new OlapException(sb.ToString(), _cube.Server.LastErrorInternal.Value);
            }

            MdsSetValueEpilog();
        }