587 {
588 get
589 {
591 {
593 }
594 return "";
595 }
598 set
599 {
600 long scopeId = DataCommonEventSource.Log.EnterScope(
"<ds.DataColumn.set_Expression|API> {0}, '{1}'",
ObjectID,
value);
602 {
603 value =
string.Empty;
604 }
605 try
606 {
608 if (
value.Length > 0)
609 {
612 {
614 }
615 }
617 {
619 {
620 throw ExceptionBuilder.ExpressionAndUnique();
621 }
623 {
625 {
627 {
629 }
630 }
631 }
633 try
634 {
636 }
637 catch (ReadOnlyException e)
638 {
639 ExceptionBuilder.TraceExceptionForCapture(e);
641 throw ExceptionBuilder.ExpressionAndReadOnly();
642 }
643 }
645 {
647 {
648 throw ExceptionBuilder.ExpressionCircular();
649 }
653 try
654 {
656 {
658 {
660 }
661 }
662 else
663 {
665 }
668 return;
669 }
671 {
672 ExceptionBuilder.TraceExceptionForCapture(
e2);
673 try
674 {
678 {
680 {
682 }
683 }
684 else
685 {
687 }
690 }
692 {
693 ExceptionBuilder.TraceExceptionWithoutRethrow(
e3);
694 }
695 throw;
696 }
697 }
699 }
700 finally
701 {
702 DataCommonEventSource.Log.ExitScope(scopeId);
703 }
704 }
705 }
static bool IsCatchableExceptionType(Exception e)
void InitializeRecord(int record)
DataExpression _expression
DataExpression? DataExpression
void HandleDependentColumnList(DataExpression oldExpression, DataExpression newExpression)
void EvaluateExpressions()
void EvaluateDependentExpressions(DataColumn column)
ConstraintCollection Constraints
void ResetInternalIndexes(DataColumn column)