38 references to Add
System.Activities (38)
System\Activities\Activity.cs (7)
762
ActivityUtilities.
Add
(ref newList, this.tempValidationErrors[i]);
957
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityDelegateHandlersMustBeDeclarations(this.DisplayName, activityDelegate.Owner.DisplayName, this.Parent.DisplayName), false, activityDelegate.Owner));
1012
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityCannotReferenceItself(this.DisplayName), parent));
1018
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.RootActivityCannotBeReferenced(this.DisplayName, parent.DisplayName), parent));
1024
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityCannotBeReferencedWithoutTarget(this.DisplayName, parent.DisplayName, this.Parent.DisplayName), parent));
1030
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityCannotBeReferenced(this.DisplayName, parent.DisplayName, referenceTarget.DisplayName, this.Parent.DisplayName), false, parent));
1092
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(
System\Activities\ActivityDelegate.cs (6)
174
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferencedWithoutTargetNoHandler(parent.DisplayName, this.owner.DisplayName), false, parent));
178
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferencedWithoutTarget(handler.DisplayName, parent.DisplayName, this.owner.DisplayName), false, parent));
189
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferencedNoHandler(parent.DisplayName, referenceTarget.DisplayName, this.owner.DisplayName), false, parent));
193
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ActivityDelegateCannotBeReferenced(handler.DisplayName, parent.DisplayName, referenceTarget.DisplayName, this.owner.DisplayName), false, parent));
236
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.RuntimeDelegateArgumentDirectionIncorrect, parent));
241
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.RuntimeDelegateArgumentTypeIncorrect, parent));
System\Activities\ActivityLocationReferenceEnvironment.cs (1)
136
ActivityUtilities.
Add
(ref validationErrors, validationError);
System\Activities\Argument.cs (3)
272
ActivityUtilities.
Add
(ref validationErrors, validationError);
287
ActivityUtilities.
Add
(
299
ActivityUtilities.
Add
(
System\Activities\DelegateArgument.cs (1)
92
ActivityUtilities.
Add
(ref validationErrors, validationError);
System\Activities\Runtime\LocationEnvironment.cs (2)
684
ActivityUtilities.
Add
(ref this.locationsToRegister, newVariable);
780
ActivityUtilities.
Add
(ref this.locationsToUnregister, location);
System\Activities\RuntimeArgument.cs (3)
288
ActivityUtilities.
Add
(ref validationErrors, ProcessViolation(parent, SR.ArgumentIsAddedMoreThanOnce(this.Name, this.Owner.DisplayName)));
296
ActivityUtilities.
Add
(ref validationErrors, ProcessViolation(parent, SR.ArgumentAlreadyInUse(this.Name, this.Owner.DisplayName, parent.DisplayName)));
304
ActivityUtilities.
Add
(ref validationErrors, ProcessViolation(parent, SR.RuntimeArgumentBindingInvalid(this.Name, this.boundArgument.RuntimeArgument.Name)));
System\Activities\Validation\ActivityValidationServices.cs (6)
140
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.InputParametersTypeMismatch(argument.Type, argument.Name), rootActivity));
160
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.UnusedInputArguments(unusedArguments.AsCommaSeparatedValues()), rootActivity));
401
ActivityUtilities.
Add
(ref validationErrors, constraintExceptionValidationError);
556
ActivityUtilities.
Add
(ref this.errors, error);
574
ActivityUtilities.
Add
(ref this.errors, error);
611
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.DuplicateEvaluationOrderValues(referenceActivity.DisplayName, argument.BoundArgument.EvaluationOrder), false, argument.Name, referenceActivity));
System\Activities\Validation\ValidationHelper.cs (7)
26
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.RequiredArgumentValueNotSupplied(argument.Name), false, argument.Name, activity));
76
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.NoOverloadGroupsAreConfigured, false, activity));
107
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ExtraOverloadGroupPropertiesConfigured(configuredGroupName,
120
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.ExtraOverloadGroupPropertiesConfigured(configuredGroupName,
130
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.MultipleOverloadGroupsConfigured(configuredGroups.AsCommaSeparatedValues()), false, activity));
200
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.OverloadGroupsAreEquivalent(sortedList.AsCommaSeparatedValues()), false, activity));
231
ActivityUtilities.
Add
(ref validationErrors, new ValidationError(SR.OverloadGroupHasSubsets(entry.Key, subsetGroups.AsCommaSeparatedValues()), false, activity));
System\Activities\Variable.cs (2)
139
ActivityUtilities.
Add
(ref validationErrors, validationError);
161
ActivityUtilities.
Add
(