public void CloseDimension(string UniqueName) { Dimension dim = _report.Schema.Dimensions[UniqueName]; if (dim == null) { throw new Exception("Error: invalid identifier"); } dim.Close(); }