System.Data.ExprException.ComputeNotAggregate C# (CSharp) Method

ComputeNotAggregate() public static method

public static ComputeNotAggregate ( string expr ) : Exception
expr string
return System.Exception
        public static Exception ComputeNotAggregate(string expr)
        {
            return _Eval(SR.Format(SR.Expr_ComputeNotAggregate, expr));
        }

Usage Example

Exemplo n.º 1
0
 // Helper for the DataTable.Compute method
 internal override object Eval(int[] records)
 {
     if (_childTable == null)
     {
         throw ExprException.AggregateUnbound(ToString());
     }
     if (!_local)
     {
         throw ExprException.ComputeNotAggregate(ToString());
     }
     return(_column.GetAggregateValue(records, _type));
 }
All Usage Examples Of System.Data.ExprException::ComputeNotAggregate