14 instantiations of ValidationError
System.Activities (9)
System\Activities\ActivityMetadata.cs (1)
108AddValidationError(new ValidationError(validationErrorMessage));
System\Activities\CodeActivityMetadata.cs (1)
116AddValidationError(new ValidationError(validationErrorMessage));
System\Activities\Expressions\BinaryExpressionHelper.cs (1)
56validationError = new ValidationError(e.Message);
System\Activities\Expressions\MemberExpressionHelper.cs (1)
59validationError = new ValidationError(e.Message);
System\Activities\Expressions\UnaryExpressionHelper.cs (1)
47validationError = new ValidationError(e.Message);
System\Activities\NativeActivityMetadata.cs (1)
107AddValidationError(new ValidationError(validationErrorMessage));
System\Activities\RuntimeArgument.cs (1)
463return new ValidationError(errorMessage, false, this.Name)
System\Activities\Validation\AddValidationError.cs (1)
71Constraint.AddValidationError(context, new ValidationError(this.Message.Get(context), isWarning, propertyName));
System\Activities\Validation\AssertValidation.cs (1)
86Constraint.AddValidationError(context, new ValidationError(this.Message.Get(context), isWarning, propertyName));
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (1)
307this.errorService.ShowValidationErrors(new List<ValidationErrorInfo> { new ValidationErrorInfo(new ValidationError(SR.ValidationDisabledWarning, true)) });
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowService.cs (1)
386validationErrors.Add(new ValidationError(exception.Message));
System.Workflow.Runtime (3)
System\Activities\Statements\Interop.cs (3)
1023Constraint.AddValidationError(context, new ValidationError(error.ErrorText, error.IsWarning, error.PropertyName)); 1140Constraint.AddValidationError(context, new ValidationError(message)); 1151Constraint.AddValidationError(context, new ValidationError(message));
150 references to ValidationError
Microsoft.Activities.Build (5)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (5)
128List<ValidationError> validationErrors = new List<ValidationError>(); 146ValidationError error = new ValidationError(SR.ValidationBuildExtensionExceptionPrefix(typeof(ValidationBuildExtension).Name, activity.DisplayName, e.Message)); 165foreach (ValidationError violation in validationErrors) 294public Violation(string fileName, ValidationError validationError, SourceLocation sourceLoation)
System.Activities (121)
System\Activities\Activity.cs (13)
57IList<ValidationError> tempValidationErrors; 751internal void SetTempValidationErrorCollection(IList<ValidationError> validationErrors) 756internal void TransferTempValidationErrors(ref IList<ValidationError> newList) 769internal void AddTempValidationError(ValidationError validationError) 773this.tempValidationErrors = new Collection<ValidationError>(); 950internal bool InitializeRelationship(ActivityDelegate activityDelegate, ActivityCollectionType collectionType, ref IList<ValidationError> validationErrors) 972internal bool InitializeRelationship(RuntimeArgument argument, ref IList<ValidationError> validationErrors) 977internal bool InitializeRelationship(Variable variable, bool isPublic, ref IList<ValidationError> validationErrors) 982internal bool InitializeRelationship(Activity parent, ActivityCollectionType collectionType, ref IList<ValidationError> validationErrors) 997bool InitializeRelationship(Activity parent, bool isPublic, RelationshipType relationship, ref IList<ValidationError> validationErrors) 1083internal void InternalCacheMetadata(bool createEmptyBindings, ref IList<ValidationError> validationErrors) 1120validationErrors = new List<ValidationError>(); 1125ValidationError validationError = this.tempValidationErrors[i];
System\Activities\ActivityDelegate.cs (1)
153internal bool InitializeRelationship(Activity parent, ActivityCollectionType collectionType, ref IList<ValidationError> validationErrors)
System\Activities\ActivityLocationReferenceEnvironment.cs (2)
106public void Declare(LocationReference locationReference, Activity owner, ref IList<ValidationError> validationErrors) 130ValidationError validationError = new ValidationError(SR.SymbolNamesMustBeUnique(locationReference.Name))
System\Activities\ActivityMetadata.cs (2)
97public void SetValidationErrorsCollection(Collection<ValidationError> validationErrors) 111public void AddValidationError(ValidationError validationError)
System\Activities\ActivityUtilities.cs (12)
528static void ProcessChildren(Activity parent, IList<Activity> children, ActivityCollectionType collectionType, bool addChildren, ref ChildActivity nextActivity, ref Stack<ChildActivity> activitiesRemaining, ref IList<ValidationError> validationErrors) 545static void ProcessArguments(Activity parent, IList<RuntimeArgument> arguments, bool addChildren, ref ActivityLocationReferenceEnvironment environment, ref int nextEnvironmentId, ref ChildActivity nextActivity, ref Stack<ChildActivity> activitiesRemaining, ref IList<ValidationError> validationErrors) 576static void ProcessVariables(Activity parent, IList<Variable> variables, ActivityCollectionType collectionType, bool addChildren, ref ActivityLocationReferenceEnvironment environment, ref int nextEnvironmentId, ref ChildActivity nextActivity, ref Stack<ChildActivity> activitiesRemaining, ref IList<ValidationError> validationErrors) 607static void ProcessDelegates(Activity parent, IList<ActivityDelegate> delegates, ActivityCollectionType collectionType, bool addChildren, ref ChildActivity nextActivity, ref Stack<ChildActivity> activitiesRemaining, ref IList<ValidationError> validationErrors) 622static void ProcessActivity(ChildActivity childActivity, ref ChildActivity nextActivity, ref Stack<ChildActivity> activitiesRemaining, ActivityCallStack parentChain, ref IList<ValidationError> validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback) 633IList<ValidationError> tempValidationErrors = null; 732validationErrors = new List<ValidationError>(); 739ValidationError validationError = tempValidationErrors[i]; 809public static void CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, ref IList<ValidationError> validationErrors) 859IList<ValidationError> discardedValidationErrors = null; 865IList<ValidationError> discardedValidationErrors = null; 883static void ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, ref IList<ValidationError> validationErrors)
System\Activities\Argument.cs (2)
265internal void Validate(Activity owner, ref IList<ValidationError> validationErrors) 271ValidationError validationError = new ValidationError(SR.ResultCannotBeSetOnArgumentExpressions, false, this.RuntimeArgument.Name, owner);
System\Activities\CodeActivityMetadata.cs (2)
105public void SetValidationErrorsCollection(Collection<ValidationError> validationErrors) 119public void AddValidationError(ValidationError validationError)
System\Activities\Debugger\SourceLocationProvider.cs (4)
212IList<ValidationError> validationErrors = null; 284IList<ValidationError> validationErrors = null; 292IList<ValidationError> validationErrors = null; 384IList<ValidationError> validationErrors = null;
System\Activities\DelegateArgument.cs (2)
86internal bool InitializeRelationship(Activity parent, ref IList<ValidationError> validationErrors) 91ValidationError validationError = new ValidationError(SR.DelegateArgumentAlreadyInUseOnActivity(this.Name, parent.DisplayName, this.Owner.DisplayName), this.Owner);
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (1)
117IList<ValidationError> validationErrors = null;
System\Activities\Expressions\Add.cs (1)
67ValidationError validationError;
System\Activities\Expressions\And.cs (1)
46ValidationError validationError;
System\Activities\Expressions\As.cs (1)
38ValidationError validationError;
System\Activities\Expressions\BinaryExpressionHelper.cs (1)
31public static bool TryGenerateLinqDelegate<TLeft, TRight, TResult>(ExpressionType operatorType, out Func<TLeft, TRight, TResult> function, out ValidationError validationError)
System\Activities\Expressions\Cast.cs (1)
58ValidationError validationError;
System\Activities\Expressions\Divide.cs (1)
43ValidationError validationError;
System\Activities\Expressions\Equal.cs (1)
43ValidationError validationError;
System\Activities\Expressions\FieldValue.cs (1)
59ValidationError validationError;
System\Activities\Expressions\GreaterThan.cs (1)
41ValidationError validationError;
System\Activities\Expressions\GreaterThanOrEqual.cs (1)
41ValidationError validationError;
System\Activities\Expressions\LessThan.cs (1)
43ValidationError validationError;
System\Activities\Expressions\LessThanOrEqual.cs (1)
43ValidationError validationError;
System\Activities\Expressions\MemberExpressionHelper.cs (1)
31public static bool TryGenerateLinqDelegate<TOperand, TResult>(string memberName, bool isField, bool isStatic, out Func<TOperand, TResult> operation, out ValidationError validationError)
System\Activities\Expressions\Multiply.cs (1)
66ValidationError validationError;
System\Activities\Expressions\Not.cs (1)
37ValidationError validationError;
System\Activities\Expressions\NotEqual.cs (1)
41ValidationError validationError;
System\Activities\Expressions\Or.cs (1)
44ValidationError validationError;
System\Activities\Expressions\PropertyValue.cs (1)
60ValidationError validationError;
System\Activities\Expressions\Subtract.cs (1)
66ValidationError validationError;
System\Activities\Expressions\UnaryExpressionHelper.cs (1)
26public static bool TryGenerateLinqDelegate<TOperand, TResult>(ExpressionType operatorType, out Func<TOperand, TResult> operation, out ValidationError validationError)
System\Activities\Hosting\WorkflowInstance.cs (1)
379IList<ValidationError> validationErrors = null;
System\Activities\NativeActivityMetadata.cs (2)
96public void SetValidationErrorsCollection(Collection<ValidationError> validationErrors) 110public void AddValidationError(ValidationError validationError)
System\Activities\RuntimeArgument.cs (2)
281internal bool InitializeRelationship(Activity parent, ref IList<ValidationError> validationErrors) 461ValidationError ProcessViolation(Activity owner, string errorMessage)
System\Activities\Validation\ActivityValidationServices.cs (21)
19internal static ReadOnlyCollection<ValidationError> EmptyValidationErrors = new ReadOnlyCollection<ValidationError>(new List<ValidationError>(0)); 57internal static void ThrowIfViolationsExist(IList<ValidationError> validationErrors, ExceptionReason reason = ExceptionReason.InvalidTree) 67static Exception CreateExceptionFromValidationErrors(IList<ValidationError> validationErrors, ExceptionReason reason) 116IList<ValidationError> validationErrors = null; 184internal static void ValidateArguments(Activity activity, bool isRoot, ref IList<ValidationError> validationErrors) 211static string GenerateExceptionString(IList<ValidationError> validationErrors, ExceptionReason reason) 220ValidationError validationError = validationErrors[i]; 359internal static void RunConstraints(ActivityUtilities.ChildActivity childActivity, ActivityUtilities.ActivityCallStack parentChain, IList<Constraint> constraints, ProcessActivityTreeOptions options, bool suppressGetChildrenViolations, ref IList<ValidationError> validationErrors) 395ValidationError constraintExceptionValidationError = new ValidationError(SR.InternalConstraintException(constraint.DisplayName, toValidate.GetType().FullName, toValidate.DisplayName, e.ToString()), false) 409IList<ValidationError> validationErrorList = (IList<ValidationError>)resultValidationErrors; 415validationErrors = new List<ValidationError>(); 423ValidationError validationError = validationErrorList[validationErrorIndex]; 445internal static bool HasErrors(IList<ValidationError> validationErrors) 465IList<ValidationError> errors; 484IList<ValidationError> suppressedErrors = null; 555ValidationError error = new ValidationError(SR.CanInduceIdleActivityInArgumentExpression(runtimeArgument.Name, activity.Parent.DisplayName, activity.DisplayName), true, runtimeArgument.Name, activity.Parent); 573ValidationError error = new ValidationError(SR.CanInduceIdleActivityInArgumentExpression(runtimeArgument.Name, expressionRoot.Parent.DisplayName, activity.DisplayName), true, runtimeArgument.Name, expressionRoot.Parent); 601internal static void ValidateEvaluationOrder(IList<RuntimeArgument> runtimeArguments, Activity referenceActivity, ref IList<ValidationError> validationErrors)
System\Activities\Validation\Constraint.cs (6)
30this.violationList = new RuntimeArgument(ValidationErrorListArgumentName, typeof(IList<ValidationError>), ArgumentDirection.Out); 33public static void AddValidationError(NativeActivityContext context, ValidationError error) 35List<ValidationError> validationErrorList = context.Properties.Find(ValidationErrorListPropertyName) as List<ValidationError>; 71List<ValidationError> validationErrorList = new List<ValidationError>(1);
System\Activities\Validation\ValidationContext.cs (3)
17IList<ValidationError> getChildrenErrors; 77internal void AddGetChildrenErrors(ref IList<ValidationError> validationErrors) 83validationErrors = new List<ValidationError>();
System\Activities\Validation\ValidationHelper.cs (3)
17public static void ValidateArguments(Activity activity, OverloadGroupEquivalenceInfo equivalenceInfo, Dictionary<string, List<RuntimeArgument>> overloadGroups, List<RuntimeArgument> requiredArgumentsNotInOverloadGroups, IDictionary<string, object> inputs, ref IList<ValidationError> validationErrors) 135public static bool GatherAndValidateOverloads(Activity activity, out Dictionary<string, List<RuntimeArgument>> overloadGroups, out List<RuntimeArgument> requiredArgumentsNotInOverloadGroups, out OverloadGroupEquivalenceInfo equivalenceInfo, ref IList<ValidationError> validationErrors) 182static bool ValidateOverloadGroupDefinitions(Activity activity, OverloadGroupEquivalenceInfo equivalenceInfo, Dictionary<string, List<RuntimeArgument>> overloadGroups, ref IList<ValidationError> validationErrors)
System\Activities\Validation\ValidationResults.cs (14)
15ReadOnlyCollection<ValidationError> allValidationErrors; 16ReadOnlyCollection<ValidationError> errors; 17ReadOnlyCollection<ValidationError> warnings; 20public ValidationResults(IList<ValidationError> allValidationErrors) 28this.allValidationErrors = new ReadOnlyCollection<ValidationError>(allValidationErrors); 32public ReadOnlyCollection<ValidationError> Errors 45public ReadOnlyCollection<ValidationError> Warnings 67IList<ValidationError> warningsList = null; 68IList<ValidationError> errorsList = null; 72ValidationError violation = this.allValidationErrors[i]; 78warningsList = new Collection<ValidationError>(); 87errorsList = new Collection<ValidationError>(); 100this.warnings = new ReadOnlyCollection<ValidationError>(warningsList); 109this.errors = new ReadOnlyCollection<ValidationError>(errorsList);
System\Activities\Variable.cs (2)
132internal bool InitializeRelationship(Activity parent, bool isPublic, ref IList<ValidationError> validationErrors) 138ValidationError validationError = new ValidationError(SR.VariableAlreadyInUseOnActivity(this.Name, parent.DisplayName, this.Owner.DisplayName), false, this.Name, parent);
System\Activities\WorkflowInspectionServices.cs (4)
32IList<ValidationError> validationErrors = null; 58IList<ValidationError> validationErrors = null; 85IList<ValidationError> validationErrors = null; 188IList<ValidationError> validationErrors = null;
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
342IList<ValidationError> validationErrors = null;
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
228IList<ValidationError> validationErrors = null;
System.Activities.Presentation (15)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationErrorInfo.cs (1)
27public ValidationErrorInfo(ValidationError validationError)
System.Activities.Presentation\System\Activities\Presentation\Validation\ValidationService.cs (14)
55ICollection<ValidationError> errors; 60public ErrorsMarkedEventArgs(ICollection<ValidationError> errors, 71public ICollection<ValidationError> Errors 448List<ValidationError> validationErrors = null; 451validationErrors = new List<ValidationError>(results.Errors); 463foreach (ValidationError validationError in validationErrors) 597private bool MarkErrors(ICollection<ValidationError> errors, ValidationReason reason, Activity rootActivity) 609foreach (ValidationError error in errors) 635private void MarkError(ValidationError validationError, List<object> errorSourcePath) 653private void MarkCulprit(object errorSource, ValidationError validationError) 666private void MarkParent(ValidationError validationError, object errorParent) 700private bool HandleErrorsMarked(ICollection<ValidationError> errors, ValidationReason reason) 769private static ValidationState GetValidationState(ValidationError validationError) 779private static void MergeValidationError(ValidationErrorState originalError, ValidationError newError)
System.ServiceModel.Activities (8)
System\ServiceModel\Activities\WorkflowService.cs (8)
228Collection<ValidationError> errors = new Collection<ValidationError>(); 252foreach (ValidationError validationError in results.Errors) 257foreach (ValidationError validationWarning in results.Warnings) 272bool IsContractValid(ContractDescription contractDescription, Collection<ValidationError> validationError) 315void AfterValidation(Collection<ValidationError> errors) 346Dictionary<OperationIdentifier, OperationProperty> CreateOperationProperties(Collection<ValidationError> validationErrors) 622foreach (ValidationError error in validationResults.Errors)
System.Workflow.Runtime (1)
System\Activities\Statements\Interop.cs (1)
26using ValidationError = System.Activities.Validation.ValidationError;