389 instantiations of ValidationError
System.Workflow.Activities (232)
Common\ValidationHelpers.cs (5)
58
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, propName), ErrorNumbers.Error_PropertyNotSet);
67
error = new
ValidationError
(SR.GetString(SR.Error_InvalidIdentifier, propName, e.Message), ErrorNumbers.Error_InvalidIdentifier);
82
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, propName), ErrorNumbers.Error_PropertyNotSet);
92
error = new
ValidationError
(SR.GetString(SR.Error_InvalidIdentifier, propName, SR.GetString(SR.Error_InvalidLanguageIdentifier, identifier)), ErrorNumbers.Error_InvalidIdentifier);
116
ValidationError duplicateError = new
ValidationError
(SR.GetString(SR.Error_DuplicatedActivityID, activity.QualifiedName), ErrorNumbers.Error_DuplicatedActivityID);
Conditional.cs (3)
149
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ConditionalLessThanOneChildren), ErrorNumbers.Error_IfElseLessThanOneChildren));
156
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ConditionalDeclNotAllConditionalBranchDecl), ErrorNumbers.Error_IfElseNotAllIfElseBranchDecl));
173
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus)), ErrorNumbers.Error_DynamicActivity);
ConditionalBranch.cs (1)
73
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ConditionalBranchParentNotConditional), ErrorNumbers.Error_ConditionalBranchParentNotConditional));
ConstrainedGroup.cs (2)
177
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_NestedConstrainedGroupConditions, propertyName), ErrorNumbers.Error_NestedConstrainedGroupConditions);
824
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, activity.ExecutionStatus, activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
CorrelationValidator.cs (31)
40
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), interfaceType.FullName), ErrorNumbers.Error_GenericMethodsNotSupported);
49
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ExternalDataExchangeException), interfaceType.FullName), ErrorNumbers.Error_TypeNotExist);
74
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MissingMethodName, activity.Name, ((CallExternalMethodActivity)activity).MethodName), ErrorNumbers.Error_MissingMethodName));
79
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), methodInfo.Name), ErrorNumbers.Error_GenericMethodsNotSupported);
94
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MissingEventName, activity.Name, ((HandleExternalEventActivity)activity).EventName), ErrorNumbers.Error_MissingMethodName));
110
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_CorrelationTokenSpecifiedForUncorrelatedInterface), activity.QualifiedName, interfaceType), ErrorNumbers.Error_InvalidIdentifier, false, "CorrelationToken"));
121
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_MissingCorrelationTokenProperty), activity.QualifiedName), ErrorNumbers.Error_ParameterPropertyNotSet, false, "CorrelationToken"));
127
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_MissingCorrelationTokenOwnerNameProperty), activity.QualifiedName), ErrorNumbers.Error_ParameterPropertyNotSet, false, "CorrelationToken"));
158
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_OwnerActivityIsNotParent), activity.QualifiedName), ErrorNumbers.Error_ParameterPropertyNotSet);
172
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InitializerInReplicator), replicatorParent.QualifiedName), ErrorNumbers.Error_InitializerInReplicator, false);
200
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_CorrelationTokenInReplicator, correlator.Name, replicatorParent.QualifiedName)), ErrorNumbers.Error_CorrelationTokenInReplicator, true);
288
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_UninitializedCorrelation)), ErrorNumbers.Error_UninitializedCorrelation, true);
293
error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_MisMatchCorrelationTokenOwnerNameProperty), correlator.Name), ErrorNumbers.Error_UninitializedCorrelation, false);
301
ValidationError error = new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InitializerFollowerInTxnlScope)), ErrorNumbers.Error_InitializerFollowerInTxnlScope, false);
427
ValidationError error = new
ValidationError
(
438
ValidationError error = new
ValidationError
(
451
ValidationError error = new
ValidationError
(
478
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationParameterAttribute).Name, "Name", interfaceType.Name), ErrorNumbers.Error_CorrelationAttributeInvalid);
485
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationParameterAttribute).Name, parameterAttribute.Name, interfaceType.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute);
576
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationParameterNotFound, typeof(CorrelationAliasAttribute).Name, paramName, memberInfo.Name, typeof(CorrelationParameterAttribute).Name, interfaceType.Name), ErrorNumbers.Error_CorrelationParameterNotFound);
602
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInvalid, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramName), ErrorNumbers.Error_CorrelationInvalid);
609
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationTypeNotConsistent, paramPath, typeof(CorrelationAliasAttribute).Name, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramType.Name, ((Type)paramTypes[paramName]).Name, paramName, interfaceType.Name), ErrorNumbers.Error_CorrelationTypeNotConsistent);
618
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInitializerNotDefinied, interfaceType.Name), ErrorNumbers.Error_CorrelationInitializerNotDefinied);
645
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_MissingCorrelationParameterAttribute, interfaceType.Name), ErrorNumbers.Error_MissingCorrelationParameterAttribute);
675
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Name", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid);
683
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Path", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid);
691
ValidationError error = new
ValidationError
(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationAliasAttribute).Name, aliasAttribute.Name, memberInfo.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute);
880
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InvalidEventArgsSignature, operation)), ErrorNumbers.Error_FieldNotExists, false, "EventName"));
891
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InvalidEventPropertyName, paramName)), ErrorNumbers.Error_FieldNotExists, false, "ParameterBindings"));
893
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InvalidMethodPropertyName, paramName)), ErrorNumbers.Error_FieldNotExists, false, "ParameterBindings"));
929
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture,
Delay.cs (1)
161
errors.Add(new
ValidationError
(SR.GetString(SR.Error_NegativeValue, new object[] { delay.TimeoutDuration.ToString(), "TimeoutDuration" }), ErrorNumbers.Error_NegativeValue));
EventDriven.cs (4)
70
validationErrors.Add(new
ValidationError
(SR.GetError_EventDrivenParentNotListen(), ErrorNumbers.Error_EventDrivenParentNotListen));
87
validationErrors.Add(new
ValidationError
(message, errorNumber));
102
return new
ValidationError
(SR.GetString(SR.Error_EventActivityIsImmutable), ErrorNumbers.Error_DynamicActivity, false);
109
return new
ValidationError
(SR.GetString(SR.Error_EventActivityIsImmutable), ErrorNumbers.Error_DynamicActivity, false);
EventHandlers.cs (3)
477
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MustHaveParent), ErrorNumbers.Error_EventHandlersDeclParentNotScope));
483
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_EventHandlersDeclParentNotScope, eventHandlers.Parent.QualifiedName), ErrorNumbers.Error_EventHandlersDeclParentNotScope));
494
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ListenNotAllEventDriven), ErrorNumbers.Error_ListenNotAllEventDriven));
EventHandlingScope.cs (4)
230
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MoreThanTwoActivitiesInEventHandlingScope, compositeActivity.QualifiedName), ErrorNumbers.Error_MoreThanTwoActivitiesInEventHandlingScope));
234
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MoreThanOneEventHandlersDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneEventHandlersDecl));
250
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
254
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity3, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
InvokeSchedule.cs (6)
201
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_TypePropertyInvalid, "TargetWorkflow"), ErrorNumbers.Error_PropertyNotSet);
221
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_TypeIsNotRootActivity, "TargetWorkflow"), ErrorNumbers.Error_TypeIsNotRootActivity);
239
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_GetCalleeWorkflow, invokeWorkflow.TargetWorkflow), ErrorNumbers.Error_GetCalleeWorkflow);
251
ValidationError validationError = new
ValidationError
(SR.GetString(SR.Error_ExecWithActivationReceive), ErrorNumbers.Error_ExecWithActivationReceive);
276
ValidationError validationError = new
ValidationError
(SR.GetString(SR.Error_ExecInAtomicScope), ErrorNumbers.Error_ExecInAtomicScope);
287
ValidationError validationError = new
ValidationError
(SR.GetString(SR.Error_ParameterNotFound, paramBinding.ParameterName), ErrorNumbers.Error_ParameterNotFound);
InvokeWebService.cs (3)
435
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_TypePropertyInvalid, "ProxyClass"), ErrorNumbers.Error_PropertyNotSet);
455
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_MethodNotExists, "MethodName", invokeWebService.MethodName), ErrorNumbers.Error_MethodNotExists);
507
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Warning_AdditionalBindingsFound), ErrorNumbers.Warning_AdditionalBindingsFound, true));
Listen.cs (2)
301
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ListenLessThanTwoChildren), ErrorNumbers.Error_ListenLessThanTwoChildren));
313
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ListenNotAllEventDriven), ErrorNumbers.Error_ListenNotAllEventDriven));
Parallel.cs (2)
206
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ParallelLessThanTwoChildren), ErrorNumbers.Error_ParallelLessThanTwoChildren));
220
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ParallelNotAllSequence), ErrorNumbers.Error_ParallelNotAllSequence));
Rules\ArithmeticLiteral.cs (1)
321
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
Rules\DeclarativeExpressionConditionDeclaration.cs (6)
167
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_EmptyExpression);
383
ValidationError validationError = new
ValidationError
(message, ErrorNumbers.Error_ConditionNotFound);
409
ValidationError validationError = new
ValidationError
(genericErrorMsg, errorNumber);
417
ValidationError validationError = new
ValidationError
(genericErrorMsg + " " + actualError.ErrorText, errorNumber);
430
ValidationError validationError = new
ValidationError
(message, ErrorNumbers.Error_DuplicateConditions);
448
ValidationError validationError = new
ValidationError
(message, ErrorNumbers.Error_InvalidConditionName);
Rules\Expressions.cs (50)
50
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
119
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
193
error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
204
error = new
ValidationError
(message, ErrorNumbers.Error_LeftOperandMissing);
213
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
225
error = new
ValidationError
(message, ErrorNumbers.Error_RightOperandMissing);
234
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
329
error = new
ValidationError
(message, ErrorNumbers.Error_LeftOperandInvalidType);
338
error = new
ValidationError
(message, ErrorNumbers.Error_RightOperandInvalidType);
348
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
906
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
930
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_BindingTypeMissing);
948
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
958
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CouldNotDetermineMemberType);
967
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
1061
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
1085
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_BindingTypeMissing);
1103
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
1113
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CouldNotDetermineMemberType);
1124
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
1277
error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
1286
error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
1318
error = new
ValidationError
(message, ErrorNumbers.Error_BindingTypeMissing);
1335
error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
1345
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
1409
error = new
ValidationError
(message, ErrorNumbers.Error_CouldNotDetermineMemberType);
1733
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
1751
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
1900
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
1996
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
2013
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
2043
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
2115
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
2308
error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
2342
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
2393
error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
2694
error = new
ValidationError
(message, ErrorNumbers.Error_CannotIndexType);
2704
error = new
ValidationError
(message, ErrorNumbers.Error_ArrayIndexBadRank);
2736
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
2763
error = new
ValidationError
(message, ErrorNumbers.Error_ArrayIndexBadType);
2921
error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
2954
error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
2989
error = new
ValidationError
(message, ErrorNumbers.Error_MethodNotExists);
2999
error = new
ValidationError
(message, ErrorNumbers.Error_MethodNotExists);
3221
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidAssignTarget);
3247
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
3279
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
3292
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ParameterNotSet);
3316
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
3354
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
Rules\Literal.cs (5)
436
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
460
error = new
ValidationError
(message2, ErrorNumbers.Error_OperandTypesIncompatible);
554
error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
778
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
796
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
Rules\Rule.cs (1)
170
ValidationError newError = new
ValidationError
(prefix + oldError.ErrorText, oldError.ErrorNumber, oldError.IsWarning);
Rules\RuleAction.cs (1)
153
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_InvalidUpdate);
Rules\RuleAttributes.cs (5)
98
error = new
ValidationError
(message, ErrorNumbers.Error_InvalidRuleAttributeParameter);
155
error = new
ValidationError
(message, ErrorNumbers.Error_UnknownFieldOrProperty);
331
error = new
ValidationError
(message, ErrorNumbers.Warning_RuleAttributeNoMatch, true);
347
error = new
ValidationError
(message, ErrorNumbers.Warning_RuleAttributeNoMatch, true);
374
error = new
ValidationError
(message, ErrorNumbers.Error_InvokeAttrRefersToParameterAttribute, true);
Rules\RuleSetReference.cs (4)
138
ValidationError validationError = new
ValidationError
(message, ErrorNumbers.Error_RuleSetNotFound);
166
ValidationError validationError = new
ValidationError
(actualError.ErrorText, errorNumber);
175
ValidationError validationError = new
ValidationError
(genericErrorMsg + " " + actualError.ErrorText, errorNumber);
206
ValidationError validationError = new
ValidationError
(message, ErrorNumbers.Error_InvalidRuleSetName);
Rules\RuleValidation.cs (31)
991
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_ConditionMustBeBoolean);
1072
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CyclicalExpression);
1269
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
1370
error = new
ValidationError
(message2, ErrorNumbers.Error_OperandTypesIncompatible);
1460
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
1612
error = new
ValidationError
(message2, ErrorNumbers.Error_OperandTypesIncompatible);
1909
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
2276
error = new
ValidationError
(e.Message, ErrorNumbers.Error_OperandTypesIncompatible);
2325
ValidationError error = new
ValidationError
(message, errorNumber);
2336
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
2347
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
2530
error = new
ValidationError
(message, ErrorNumbers.Error_MethodDirectionMismatch);
2541
error = new
ValidationError
(message, ErrorNumbers.Error_MethodArgumentTypeMismatch);
2553
error = new
ValidationError
(message, ErrorNumbers.Error_MethodArgumentTypeMismatch);
3137
return new
ValidationError
(message, ErrorNumbers.Error_MethodArgCountMismatch);
3164
error = new
ValidationError
(message, ErrorNumbers.Error_MethodNotExists);
3182
error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
3205
error = new
ValidationError
(message, ErrorNumbers.Error_MethodNotExists);
3223
error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
3462
return new
ValidationError
(message, ErrorNumbers.Error_MethodArgCountMismatch);
3479
error = new
ValidationError
(message, ErrorNumbers.Error_MethodOverloadNotFound);
3507
return new
ValidationError
(message, ErrorNumbers.Error_MethodArgCountMismatch);
3524
error = new
ValidationError
(message, ErrorNumbers.Error_MethodOverloadNotFound);
3548
error = new
ValidationError
(message, ErrorNumbers.Error_IndexerCountMismatch);
3562
error = new
ValidationError
(message, ErrorNumbers.Error_IndexerNotFound);
3579
error = new
ValidationError
(message, ErrorNumbers.Error_CannotResolveMember);
3652
return new
ValidationError
(message, ErrorNumbers.Error_IndexerCountMismatch);
3669
error = new
ValidationError
(message, ErrorNumbers.Error_IndexerOverloadNotFound);
3714
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_UnableToResolveType);
3751
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_UnableToResolveType);
3881
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_TypeNotAuthorized);
Rules\Statements.cs (1)
171
error = new
ValidationError
(message, ErrorNumbers.Error_OperandTypesIncompatible);
Rules\Walker.cs (1)
128
ValidationError error = new
ValidationError
(message, ErrorNumbers.Error_CodeExpressionNotHandled);
SetState.cs (4)
92
validationErrors.Add(new
ValidationError
(
110
validationErrors.Add(new
ValidationError
(SR.GetError_SetStateMustPointToAState(), ErrorNumbers.Error_SetStateMustPointToAState, false, SetStateActivity.TargetStateNamePropertyName));
116
validationErrors.Add(new
ValidationError
(SR.GetError_SetStateMustPointToALeafNodeState(), ErrorNumbers.Error_SetStateMustPointToALeafNodeState, false, SetStateActivity.TargetStateNamePropertyName));
143
validationErrors.Add(new
ValidationError
(SR.GetError_SetStateOnlyWorksOnStateMachineWorkflow(), ErrorNumbers.Error_SetStateOnlyWorksOnStateMachineWorkflow));
StateFinalizationActivity.cs (3)
55
validationErrors.Add(new
ValidationError
(SR.GetError_StateFinalizationParentNotState(), ErrorNumbers.Error_StateHandlerParentNotState));
67
validationErrors.Add(new
ValidationError
(
75
validationErrors.Add(new
ValidationError
(SR.GetError_EventActivityNotValidInStateFinalization(), ErrorNumbers.Error_EventActivityNotValidInStateHandler));
StateInitialization.cs (4)
55
validationErrors.Add(new
ValidationError
(SR.GetError_StateInitializationParentNotState(), ErrorNumbers.Error_StateHandlerParentNotState));
67
validationErrors.Add(new
ValidationError
(
77
validationErrors.Add(new
ValidationError
(SR.GetError_EventActivityNotValidInStateInitialization(), ErrorNumbers.Error_EventActivityNotValidInStateHandler));
106
validationErrors.Add(new
ValidationError
(
StateValidator.cs (16)
45
validationErrors.Add(new
ValidationError
(SR.GetError_StateMachineWorkflowMustBeARootActivity(), ErrorNumbers.Error_StateMachineWorkflowMustBeARootActivity));
55
validationErrors.Add(new
ValidationError
(SR.GetError_InvalidStateActivityParent(), ErrorNumbers.Error_InvalidStateActivityParent));
88
validationErrors.Add(new
ValidationError
(SR.GetError_BlackBoxCustomStateNotSupported(), ErrorNumbers.Error_BlackBoxCustomStateNotSupported));
103
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, activity.ExecutionStatus, activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
117
return new
ValidationError
(
127
return new
ValidationError
(
192
validationErrors.Add(new
ValidationError
(
219
validationErrors.Add(new
ValidationError
(
233
validationErrors.Add(new
ValidationError
(
246
validationErrors.Add(new
ValidationError
(
256
validationErrors.Add(new
ValidationError
(
267
validationErrors.Add(new
ValidationError
(
287
validationErrors.Add(new
ValidationError
(
298
validationErrors.Add(new
ValidationError
(
306
validationErrors.Add(new
ValidationError
(
359
validationErrors.Add(new
ValidationError
(
Task.cs (1)
1246
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_GeneratorShouldContainSingleActivity), ErrorNumbers.Error_GeneratorShouldContainSingleActivity));
WebServiceFault.cs (8)
202
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_DuplicateWebServiceFaultFound, activity.Name, webServiceFault.InputActivityName), ErrorNumbers.Error_DuplicateWebServiceFaultFound));
204
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_DuplicateWebServiceResponseFound, activity.Name, webServiceFault.InputActivityName), ErrorNumbers.Error_DuplicateWebServiceResponseFound));
222
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotValid, webServiceFault.InputActivityName), ErrorNumbers.Error_WebServiceReceiveNotValid));
231
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotFound, webServiceFault.InputActivityName), ErrorNumbers.Error_WebServiceReceiveNotFound));
242
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name), ErrorNumbers.Error_WebServiceReceiveNotConfigured));
249
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name), ErrorNumbers.Error_WebServiceReceiveNotConfigured));
257
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name), ErrorNumbers.Error_WebServiceReceiveNotConfigured));
266
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceFaultNotNeeded), ErrorNumbers.Error_WebServiceFaultNotNeeded));
WebServiceReceive.cs (9)
493
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_ActivationActivityNotFirst), ErrorNumbers.Error_ActivationActivityNotFirst);
501
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_ActivationActivityInsideLoop), ErrorNumbers.Error_ActivationActivityInsideLoop);
511
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotMarkedActivate), ErrorNumbers.Error_WebServiceReceiveNotMarkedActivate);
528
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_TypePropertyInvalid, "InterfaceType"), ErrorNumbers.Error_PropertyNotSet);
534
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_InterfaceTypeNotInterface, "InterfaceType"), ErrorNumbers.Error_InterfaceTypeNotInterface);
549
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_MethodNotExists, "MethodName", webServiceReceive.MethodName), ErrorNumbers.Error_MethodNotExists);
587
ValidationError validationError = new
ValidationError
(SR.GetString(SR.Error_TypeNotPublicSerializable, paramName, paramType.FullName), ErrorNumbers.Error_TypeNotPublicSerializable);
612
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Warning_AdditionalBindingsFound), ErrorNumbers.Warning_AdditionalBindingsFound, true));
629
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceResponseNotFound), ErrorNumbers.Error_WebServiceResponseNotFound));
WebServiceResponse.cs (12)
326
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_DuplicateWebServiceResponseFound, activity.QualifiedName, webServiceResponse.InputActivityName), ErrorNumbers.Error_DuplicateWebServiceResponseFound));
328
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_DuplicateWebServiceFaultFound, activity.QualifiedName, webServiceResponse.InputActivityName), ErrorNumbers.Error_DuplicateWebServiceFaultFound));
345
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotValid, webServiceResponse.InputActivityName), ErrorNumbers.Error_WebServiceReceiveNotValid));
354
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotFound, webServiceResponse.InputActivityName), ErrorNumbers.Error_WebServiceReceiveNotFound));
365
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name), ErrorNumbers.Error_WebServiceReceiveNotConfigured));
371
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name), ErrorNumbers.Error_WebServiceReceiveNotConfigured));
378
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceReceiveNotConfigured, webServiceReceive.Name), ErrorNumbers.Error_WebServiceReceiveNotConfigured));
398
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WebServiceResponseNotNeeded), ErrorNumbers.Error_WebServiceResponseNotNeeded));
422
ValidationError validationError = new
ValidationError
(SR.GetString(SR.Error_TypeNotPublicSerializable, paramName, paramType.FullName), ErrorNumbers.Error_TypeNotPublicSerializable);
450
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Warning_AdditionalBindingsFound), ErrorNumbers.Warning_AdditionalBindingsFound, true));
693
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ParameterTypeNotFound, methodInfo.Name, paramInfo.Name), ErrorNumbers.Error_ParameterTypeNotFound));
699
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ReturnTypeNotFound, methodInfo.Name), ErrorNumbers.Error_ReturnTypeNotFound));
While.cs (2)
171
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_WhileShouldHaveOneChild), ErrorNumbers.Error_WhileShouldHaveOneChild));
187
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity2, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus), activity.GetType().FullName), ErrorNumbers.Error_DynamicActivity2);
System.Workflow.ComponentModel (106)
AuthoringOM\Behaviors\CancellationHandler.cs (2)
74
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Warning_EmptyBehaviourActivity, typeof(CancellationHandlerActivity).FullName, cancellationHandlerActivity.QualifiedName), ErrorNumbers.Warning_EmptyBehaviourActivity, true));
78
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ModelingConstructsCanNotContainModelingConstructs), ErrorNumbers.Error_ModelingConstructsCanNotContainModelingConstructs));
AuthoringOM\Behaviors\Compensate.cs (2)
224
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_CompensateBadNesting), ErrorNumbers.Error_CompensateBadNesting));
234
error = new
ValidationError
(SR.GetString(SR.Error_CompensateBadTargetTX, "TargetActivityName", compensate.TargetActivityName, compensate.QualifiedName), ErrorNumbers.Error_CompensateBadTargetTX, false, "TargetActivityName");
AuthoringOM\Behaviors\Compensation.cs (3)
76
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ParentDoesNotSupportCompensation), ErrorNumbers.Error_FaultHandlerActivityParentNotFaultHandlersActivity));
79
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Warning_EmptyBehaviourActivity, typeof(CompensationHandlerActivity).FullName, compensation.QualifiedName), ErrorNumbers.Warning_EmptyBehaviourActivity, true));
83
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ModelingConstructsCanNotContainModelingConstructs), ErrorNumbers.Error_ModelingConstructsCanNotContainModelingConstructs));
AuthoringOM\Behaviors\ExceptionHandler.cs (5)
169
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_FaultHandlerActivityParentNotFaultHandlersActivity), ErrorNumbers.Error_FaultHandlerActivityParentNotFaultHandlersActivity));
180
error = new
ValidationError
(SR.GetString(SR.Error_TypePropertyInvalid, "FaultType"), ErrorNumbers.Error_PropertyNotSet);
186
error = new
ValidationError
(SR.GetString(SR.Error_TypeTypeMismatch, new object[] { "FaultType", typeof(Exception).FullName }), ErrorNumbers.Error_TypeTypeMismatch);
200
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Warning_EmptyBehaviourActivity, typeof(FaultHandlerActivity).FullName, exceptionHandler.QualifiedName), ErrorNumbers.Warning_EmptyBehaviourActivity, true));
204
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ModelingConstructsCanNotContainModelingConstructs), ErrorNumbers.Error_ModelingConstructsCanNotContainModelingConstructs));
AuthoringOM\Behaviors\ExceptionHandlers.cs (4)
172
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_FaultHandlersActivityDeclNotAllFaultHandlerActivityDecl), ErrorNumbers.Error_FaultHandlersActivityDeclNotAllFaultHandlerActivityDecl));
192
validationErrors.Add(new
ValidationError
(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ScopeDuplicateFaultHandlerActivityFor), new object[] { Helpers.GetEnclosingActivity(exceptionHandlers).GetType().Name, catchType.FullName }), ErrorNumbers.Error_ScopeDuplicateFaultHandlerActivityFor));
200
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_FaultHandlerActivityWrongOrder, catchType.Name, previousType.Name), ErrorNumbers.Error_FaultHandlerActivityWrongOrder));
208
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_ModelingConstructsCanNotContainModelingConstructs), ErrorNumbers.Error_ModelingConstructsCanNotContainModelingConstructs));
AuthoringOM\Bind.cs (2)
264
return new
ValidationError
(SR.GetString(SR.Error_ConfigFileMissingOrInvalid), ErrorNumbers.Error_ConfigFileMissingOrInvalid);
284
error = new
ValidationError
(SR.GetString(SR.Error_TypeNotAuthorized, memberType), ErrorNumbers.Error_TypeNotAuthorized);
AuthoringOM\Compiler\Validation\ActivityValidator.cs (1)
34
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_RootIsNotEnabled), ErrorNumbers.Error_RootIsNotEnabled);
AuthoringOM\Compiler\Validation\BindValidator.cs (49)
57
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, "Name"), ErrorNumbers.Error_PropertyNotSet);
102
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_NoEnclosingContext, activity.Name), ErrorNumbers.Error_NoEnclosingContext);
113
error = new
ValidationError
(SR.GetString(SR.Error_TypeNotResolvedInFieldName, "Name"), ErrorNumbers.Error_TypeNotResolvedInFieldName);
121
error = new
ValidationError
(SR.GetString(SR.Error_FieldNotExists, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_FieldNotExists);
131
error = new
ValidationError
(SR.GetString(SR.Error_FieldTypeNotResolved, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_FieldTypeNotResolved);
139
error = new
ValidationError
(SR.GetString(SR.Error_FieldTypeMismatch, GetFullPropertyName(manager), fieldInfo.FieldType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_FieldTypeMismatch);
147
error = new
ValidationError
(SR.GetString(SR.Error_InvalidMemberPath, dsName, bind.Path), ErrorNumbers.Error_InvalidMemberPath);
175
error = new
ValidationError
(SR.GetString(SR.Error_TargetTypeDataSourcePathMismatch, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeDataSourcePathMismatch);
188
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNoGetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoGetter);
193
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNoSetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoSetter);
203
error = new
ValidationError
(SR.GetString(SR.Error_ReadOnlyField, pathFieldInfo.Name), ErrorNumbers.Error_ReadOnlyField);
242
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, "Name"), ErrorNumbers.Error_PropertyNotSet);
282
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_NoEnclosingContext, activity.Name), ErrorNumbers.Error_NoEnclosingContext);
301
error = new
ValidationError
(SR.GetString(SR.Error_TypeNotResolvedInPropertyName, "Name"), ErrorNumbers.Error_TypeNotResolvedInPropertyName);
308
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotExists, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_PropertyNotExists);
313
error = new
ValidationError
(SR.GetString(SR.Error_PropertyReferenceNoGetter, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_PropertyReferenceNoGetter);
318
error = new
ValidationError
(SR.GetString(SR.Error_PropertyReferenceGetterNoAccess, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_PropertyReferenceGetterNoAccess);
323
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotAccessible, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_PropertyNotAccessible);
328
error = new
ValidationError
(SR.GetString(SR.Error_PropertyTypeNotResolved, GetFullPropertyName(manager), dsName), ErrorNumbers.Error_PropertyTypeNotResolved);
336
error = new
ValidationError
(SR.GetString(SR.Error_PropertyTypeMismatch, GetFullPropertyName(manager), propertyInfo.PropertyType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_PropertyTypeMismatch);
344
error = new
ValidationError
(SR.GetString(SR.Error_InvalidMemberPath, dsName, bind.Path), ErrorNumbers.Error_InvalidMemberPath);
372
error = new
ValidationError
(SR.GetString(SR.Error_TargetTypeDataSourcePathMismatch, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeDataSourcePathMismatch);
385
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNoGetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoGetter);
390
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNoSetter, pathPropertyInfo.Name, bind.Path), ErrorNumbers.Error_PropertyNoSetter);
400
error = new
ValidationError
(SR.GetString(SR.Error_ReadOnlyField, pathFieldInfo.Name), ErrorNumbers.Error_ReadOnlyField);
439
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, "Name"), ErrorNumbers.Error_PropertyNotSet);
477
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_HandlerReadOnly), ErrorNumbers.Error_HandlerReadOnly);
485
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_TypeNotDelegate, validationBindContext.TargetType.FullName), ErrorNumbers.Error_TypeNotDelegate);
499
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_NoEnclosingContext, activity.Name), ErrorNumbers.Error_NoEnclosingContext);
521
validationErrors.Add(new
ValidationError
(e.Message, ErrorNumbers.Error_InvalidIdentifier));
562
ValidationError error = new
ValidationError
(message, errorNumber);
599
error = new
ValidationError
(SR.GetString(SR.Error_IDNotSetForActivitySource), ErrorNumbers.Error_IDNotSetForActivitySource);
609
error = new
ValidationError
(SR.GetString(SR.Error_CannotResolveRelativeActivity, bind.Name), ErrorNumbers.Error_CannotResolveRelativeActivity);
611
error = new
ValidationError
(SR.GetString(SR.Error_CannotResolveActivity, bind.Name), ErrorNumbers.Error_CannotResolveActivity);
618
error = new
ValidationError
(SR.GetString(SR.Error_PathNotSetForActivitySource), ErrorNumbers.Error_PathNotSetForActivitySource);
687
error = new
ValidationError
(SR.GetString(SR.Error_InvalidMemberType, memberName, GetFullPropertyName(manager)), ErrorNumbers.Error_InvalidMemberType);
727
error = new
ValidationError
(SR.GetString(SR.Error_PathCouldNotBeResolvedToMember, bind.Path, (!string.IsNullOrEmpty(refActivity.QualifiedName)) ? refActivity.QualifiedName : refActivity.GetType().Name), ErrorNumbers.Error_PathCouldNotBeResolvedToMember);
806
error = (bind.Name.StartsWith("/", StringComparison.Ordinal)) ? new
ValidationError
(SR.GetString(SR.Error_CannotResolveRelativeActivity, bind.Name), ErrorNumbers.Error_CannotResolveRelativeActivity) : new
ValidationError
(SR.GetString(SR.Error_CannotResolveActivity, bind.Name), ErrorNumbers.Error_CannotResolveActivity);
811
error = new
ValidationError
(SR.GetString(SR.Error_PathNotSetForActivitySource), ErrorNumbers.Error_PathNotSetForActivitySource);
820
error = new
ValidationError
(SR.GetString(SR.Error_BindActivityReference, refActivity.QualifiedName, activity.QualifiedName), ErrorNumbers.Error_BindActivityReference, true);
847
error = new
ValidationError
(SR.GetString(SR.Error_InvalidMemberPath, refActivity.QualifiedName, bind.Path), ErrorNumbers.Error_InvalidMemberPath);
864
error = new
ValidationError
(SR.GetString(SR.Warning_ParameterBinding, bind.Path, refActivity.QualifiedName, validationContext.TargetType.FullName), ErrorNumbers.Warning_ParameterBinding, true);
869
error = new
ValidationError
(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, memberType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch);
881
error = new
ValidationError
(SR.GetString(SR.Error_InvalidMemberPath, refActivity.QualifiedName, bind.Path), ErrorNumbers.Error_InvalidMemberPath);
902
error = new
ValidationError
(SR.GetString(SR.Warning_ParameterBinding, bind.Path, refActivity.QualifiedName, validationContext.TargetType.FullName), ErrorNumbers.Warning_ParameterBinding, true);
907
error = new
ValidationError
(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, memberType.FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch);
929
error = new
ValidationError
(SR.GetString(SR.Bind_ActivityDataSourceRecursionDetected), ErrorNumbers.Bind_ActivityDataSourceRecursionDetected);
950
error = new
ValidationError
(SR.GetString(SR.Error_TargetTypeMismatch, memberInfo.Name, value.GetType().FullName, validationContext.TargetType.FullName), ErrorNumbers.Error_TargetTypeMismatch);
AuthoringOM\Compiler\Validation\CompositeActivityValidator.cs (4)
32
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MoreThanOneCancelHandler, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneEventHandlersDecl));
36
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MoreThanOneFaultHandlersActivityDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneFaultHandlersActivityDecl));
40
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_MoreThanOneCompensationDecl, compositeActivity.GetType().Name), ErrorNumbers.Error_ScopeMoreThanOneCompensationDecl));
62
return new
ValidationError
(SR.GetString(SR.Error_DynamicActivity, activity.QualifiedName, Enum.GetName(typeof(ActivityExecutionStatus), activity.ExecutionStatus)), ErrorNumbers.Error_DynamicActivity);
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (5)
80
errors.Add(new
ValidationError
(SR.GetString(SR.Error_PropertyDefaultIsReference, dependencyProperty.Name), ErrorNumbers.Error_PropertyDefaultIsReference));
84
errors.Add(new
ValidationError
(SR.GetString(SR.Error_PropertyDefaultTypeMismatch, dependencyProperty.Name, dependencyProperty.PropertyType.FullName, dependencyProperty.DefaultMetadata.DefaultValue.GetType().FullName), ErrorNumbers.Error_PropertyDefaultTypeMismatch));
152
errors.Add(new
ValidationError
(SR.GetString(SR.Error_CreateValidator, dependencyProperty.ValidatorType.FullName), ErrorNumbers.Error_CreateValidator));
158
errors.Add(new
ValidationError
(SR.GetString(SR.Error_CreateValidator, dependencyProperty.ValidatorType.FullName), ErrorNumbers.Error_CreateValidator));
216
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_CantResolveEventHandler, dependencyProperty.Name, propValue as string), ErrorNumbers.Error_CantResolveEventHandler);
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (9)
28
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_AtomicScopeWithFaultHandlersActivityDecl, activity.Name), ErrorNumbers.Error_AtomicScopeWithFaultHandlersActivityDecl);
36
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_AtomicScopeWithCancellationHandlerActivity, activity.Name), ErrorNumbers.Error_AtomicScopeWithCancellationHandlerActivity);
46
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_AtomicScopeNestedInNonLRT), ErrorNumbers.Error_AtomicScopeNestedInNonLRT));
59
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_LRTScopeNestedInNonLRT), ErrorNumbers.Error_LRTScopeNestedInNonLRT));
64
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_NestedCompensatableActivity, nestedEnabledActivity.QualifiedName), ErrorNumbers.Error_NestedCompensatableActivity));
78
ValidationError timeoutError = new
ValidationError
(SR.GetString(SR.Error_NegativeValue, new object[] { atomicTransaction.TimeoutDuration.ToString(), "TimeoutDuration" }), ErrorNumbers.Error_NegativeValue);
108
return new
ValidationError
(SR.GetString(SR.Error_AtomicScopeNestedInNonLRT), ErrorNumbers.Error_AtomicScopeNestedInNonLRT);
111
return new
ValidationError
(SR.GetString(SR.Error_NestedPersistOnClose, activity.QualifiedName), ErrorNumbers.Error_NestedPersistOnClose);
114
return new
ValidationError
(SR.GetString(SR.Error_NestedCompensatableActivity, activity.QualifiedName), ErrorNumbers.Error_NestedCompensatableActivity);
AuthoringOM\Compiler\Validation\ValidationError.cs (1)
79
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, propertyName), ErrorNumbers.Error_PropertyNotSet);
AuthoringOM\Compiler\XomlCompiler.cs (2)
833
identifierError = new
ValidationError
(SR.GetString(SR.Error_DuplicatedActivityID, currentActivity.QualifiedName), ErrorNumbers.Error_DuplicatedActivityID, false, "Name");
1097
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_CodeWithinNotAllowed), ErrorNumbers.Error_CodeWithinNotAllowed);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (10)
65
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_ConfigFileMissingOrInvalid), ErrorNumbers.Error_ConfigFileMissingOrInvalid);
151
results.Errors.Add(CreateXomlCompilerError(new
ValidationError
(SR.GetString(SR.Error_Missing_CanModifyProperties_False, activity.GetType().FullName), ErrorNumbers.Error_CustomActivityCantCreate), parameters));
172
results.Errors.Add(CreateXomlCompilerError(new
ValidationError
(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, tie.InnerException.InnerException.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters));
174
results.Errors.Add(CreateXomlCompilerError(new
ValidationError
(tie.InnerException.InnerException.ToString(), ErrorNumbers.Error_CustomActivityCantCreate), parameters));
176
results.Errors.Add(CreateXomlCompilerError(new
ValidationError
(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, tie.InnerException.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters));
181
results.Errors.Add(CreateXomlCompilerError(new
ValidationError
(SR.GetString(SR.Error_CustomActivityCantCreate, type.FullName, e.ToString()), ErrorNumbers.Error_CustomActivityCantCreate), parameters));
262
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_TypeNotAuthorized, referenceType), ErrorNumbers.Error_TypeNotAuthorized);
577
ValidationError error2 = new
ValidationError
(GetPrettifiedErrorText(error), error.ErrorNumber, error.IsWarning);
684
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException);
689
ValidationError error = new
ValidationError
(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException);
AuthoringOM\ScheduleChanges.cs (1)
854
errors.Add(new
ValidationError
(SR.GetString(SR.Error_RemoveExecutingActivity, this.originalRemovedActivity.QualifiedName), ErrorNumbers.Error_RemoveExecutingActivity));
AuthoringOM\Suspend.cs (1)
95
validationErrors.Add(new
ValidationError
(SR.GetString(SR.Error_SuspendInAtomicScope), ErrorNumbers.Error_SuspendInAtomicScope));
Shared\ValidationHelpers.cs (5)
57
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, propName), ErrorNumbers.Error_PropertyNotSet);
66
error = new
ValidationError
(SR.GetString(SR.Error_InvalidIdentifier, propName, e.Message), ErrorNumbers.Error_InvalidIdentifier);
81
error = new
ValidationError
(SR.GetString(SR.Error_PropertyNotSet, propName), ErrorNumbers.Error_PropertyNotSet);
91
error = new
ValidationError
(SR.GetString(SR.Error_InvalidIdentifier, propName, SR.GetString(SR.Error_InvalidLanguageIdentifier, identifier)), ErrorNumbers.Error_InvalidIdentifier);
115
ValidationError duplicateError = new
ValidationError
(SR.GetString(SR.Error_DuplicatedActivityID, activity.QualifiedName), ErrorNumbers.Error_DuplicatedActivityID);
System.Workflow.Runtime (3)
Hosting\DefaultWorkflowLoaderService.cs (3)
70
errors.Add(new
ValidationError
(((WorkflowMarkupSerializationException)error).Message, ErrorNumbers.Error_SerializationError));
72
errors.Add(new
ValidationError
(error.ToString(), ErrorNumbers.Error_SerializationError));
78
errors.Add(new
ValidationError
(e.Message, ErrorNumbers.Error_SerializationError));
System.WorkflowServices (48)
System\Workflow\Activities\ReceiveActivityValidator.cs (1)
38
new
ValidationError
(
System\Workflow\Activities\SendActivityValidator.cs (1)
38
new
ValidationError
(
System\Workflow\Activities\ValidationHelper.cs (43)
108
validationErrors.Add(new
ValidationError
(
164
validationErrors.Add(new
ValidationError
(
277
validationErrors.Add(new
ValidationError
(
293
validationErrors.Add(new
ValidationError
(
311
validationErrors.Add(new
ValidationError
(
327
validationErrors.Add(new
ValidationError
(
345
validationErrors.Add(new
ValidationError
(
402
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ChannelTokenNotSpecified, activity.Name),
412
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ChannelTokenNameNotSpecified, activity.Name),
422
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ChannelTokenConfigurationNameNotSpecified, activity.Name),
464
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OwnerActivityNameNotFound, endpoint.OwnerActivityName, activity.Name),
513
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ContextTokenNameNotSpecified, activity.Name),
524
new
ValidationError
(SR2.GetString(SR2.Error_Validation_RootContextScope, activity.Name),
566
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OwnerActivityNameNotFound, contextToken.OwnerActivityName, activity.Name),
606
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationNameNotSpecified, activity.Name),
618
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationNameInvalid, activity.Name),
625
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ContractNameNotSpecified, activity.Name),
633
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ContractNameInvalid, activity.Name),
658
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterPosition,
668
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterPositionDuplicate,
682
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterNameInvalid,
692
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterNameDuplicate,
706
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterType,
720
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ContractTypeNotSpecified, activity.Name),
738
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ContractTypeNotFound, activity.Name),
746
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ContractTypeNotInterface, contractType.FullName, activity.Name),
754
new
ValidationError
(SR2.GetString(SR2.Error_ServiceContractAttributeMissing, contractType.FullName),
765
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationNotInContract, operationInfo.Name, contractType.FullName),
773
new
ValidationError
(SR2.GetString(SR2.Error_Validation_AsyncPatternOperationNotSupported, operationInfo.Name),
788
new
ValidationError
(SR2.GetString(SR2.Error_Validation_ReturnTypeInOneWayOperation,
801
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterPosition,
811
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterPositionDuplicate,
821
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterNameInvalid,
831
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterNameDuplicate,
841
new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationParameterDirectionInOneWayOperation,
951
validationErrors.Add(new
ValidationError
(SR2.GetString(
963
validationErrors.Add(new
ValidationError
(SR2.GetString(
972
validationErrors.Add(new
ValidationError
(SR2.GetString(
1017
validationErrors.Add(new
ValidationError
(SR2.GetString(SR2.Error_ServiceContractAttributeMissing, contractType.FullName), WorkflowServicesErrorNumbers.Error_ServiceContractAttributeMissing, false, "ServiceOperationInfo"));
1023
validationErrors.Add(new
ValidationError
(SR2.GetString(SR2.Error_OperationNotInContract, methodInfo.Name, contractType.FullName), WorkflowServicesErrorNumbers.Error_OperationNotInContract, false, "ServiceOperationInfo"));
1030
validationErrors.Add(new
ValidationError
(SR2.GetString(SR2.Error_OperationContractAttributeMissing, methodInfo.Name), WorkflowServicesErrorNumbers.Error_OperationContractAttributeMissing, false, "ServiceOperationInfo"));
1054
validationErrors.Add(new
ValidationError
(SR2.GetString(SR2.Error_Validation_OperationIsOneWay, methodInfo.Name), WorkflowServicesErrorNumbers.Error_OperationIsOneWay, false, "CanCreateInstance"));
1058
validationErrors.Add(new
ValidationError
(SR2.GetString(SR2.Error_OperationNotInitiating, methodInfo.Name), WorkflowServicesErrorNumbers.Error_OperationNotInitiating, false, "CanCreateInstance"));
System\Workflow\Runtime\StreamedWorkflowDefinitionContext.cs (3)
296
errors.Add(new
ValidationError
(((WorkflowMarkupSerializationException) error).Message, 1));
300
errors.Add(new
ValidationError
(error.ToString(), 1));
311
errors.Add(new
ValidationError
(e.Message, 1));
261 references to ValidationError
System.Workflow.Activities (187)
Code.cs (1)
80
errors.Add(
ValidationError
.GetNotSetValidationError("ExecuteCode"));
CodeExpressionRuleDeclaration.cs (1)
100
errors.Add(
ValidationError
.GetNotSetValidationError(GetFullPropertyName(manager) + ".Condition"));
Common\ValidationHelpers.cs (6)
51
internal static
ValidationError
ValidateIdentifier(string propName, IServiceProvider context, string identifier)
56
ValidationError
error = null;
75
internal static
ValidationError
ValidateNameProperty(string propName, IServiceProvider context, string identifier)
80
ValidationError
error = null;
116
ValidationError
duplicateError = new ValidationError(SR.GetString(SR.Error_DuplicatedActivityID, activity.QualifiedName), ErrorNumbers.Error_DuplicatedActivityID);
237
foreach (
ValidationError
error in errors)
Conditional.cs (1)
163
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
ConditionalBranch.cs (1)
79
validationErrors.Add(
ValidationError
.GetNotSetValidationError("Condition"));
ConstrainedGroup.cs (2)
177
ValidationError
error = new ValidationError(SR.GetString(SR.Error_NestedConstrainedGroupConditions, propertyName), ErrorNumbers.Error_NestedConstrainedGroupConditions);
813
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
CorrelationValidator.cs (21)
40
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), interfaceType.FullName), ErrorNumbers.Error_GenericMethodsNotSupported);
49
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_ExternalDataExchangeException), interfaceType.FullName), ErrorNumbers.Error_TypeNotExist);
79
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_GenericMethodsNotSupported), methodInfo.Name), ErrorNumbers.Error_GenericMethodsNotSupported);
158
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_OwnerActivityIsNotParent), activity.QualifiedName), ErrorNumbers.Error_ParameterPropertyNotSet);
172
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InitializerInReplicator), replicatorParent.QualifiedName), ErrorNumbers.Error_InitializerInReplicator, false);
200
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_CorrelationTokenInReplicator, correlator.Name, replicatorParent.QualifiedName)), ErrorNumbers.Error_CorrelationTokenInReplicator, true);
288
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_UninitializedCorrelation)), ErrorNumbers.Error_UninitializedCorrelation, true);
301
ValidationError
error = new ValidationError(string.Format(CultureInfo.CurrentCulture, SR.GetString(SR.Error_InitializerFollowerInTxnlScope)), ErrorNumbers.Error_InitializerFollowerInTxnlScope, false);
427
ValidationError
error = new ValidationError(
438
ValidationError
error = new ValidationError(
451
ValidationError
error = new ValidationError(
478
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationParameterAttribute).Name, "Name", interfaceType.Name), ErrorNumbers.Error_CorrelationAttributeInvalid);
485
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationParameterAttribute).Name, parameterAttribute.Name, interfaceType.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute);
576
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationParameterNotFound, typeof(CorrelationAliasAttribute).Name, paramName, memberInfo.Name, typeof(CorrelationParameterAttribute).Name, interfaceType.Name), ErrorNumbers.Error_CorrelationParameterNotFound);
602
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInvalid, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramName), ErrorNumbers.Error_CorrelationInvalid);
609
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationTypeNotConsistent, paramPath, typeof(CorrelationAliasAttribute).Name, (memberInfo.DeclaringType == interfaceType) ? memberInfo.Name : memberInfo.DeclaringType.Name, paramType.Name, ((Type)paramTypes[paramName]).Name, paramName, interfaceType.Name), ErrorNumbers.Error_CorrelationTypeNotConsistent);
618
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationInitializerNotDefinied, interfaceType.Name), ErrorNumbers.Error_CorrelationInitializerNotDefinied);
645
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_MissingCorrelationParameterAttribute, interfaceType.Name), ErrorNumbers.Error_MissingCorrelationParameterAttribute);
675
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Name", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid);
683
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_CorrelationAttributeInvalid, typeof(CorrelationAliasAttribute).Name, "Path", memberInfo.Name), ErrorNumbers.Error_CorrelationAttributeInvalid);
691
ValidationError
error = new ValidationError(SR.GetString(CultureInfo.CurrentCulture, SR.Error_DuplicateCorrelationAttribute, typeof(CorrelationAliasAttribute).Name, aliasAttribute.Name, memberInfo.Name), ErrorNumbers.Error_DuplicateCorrelationAttribute);
EventDriven.cs (1)
92
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
EventHandlingScope.cs (1)
239
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
InvokeSchedule.cs (6)
201
ValidationError
error = new ValidationError(SR.GetString(SR.Error_TypePropertyInvalid, "TargetWorkflow"), ErrorNumbers.Error_PropertyNotSet);
221
ValidationError
error = new ValidationError(SR.GetString(SR.Error_TypeIsNotRootActivity, "TargetWorkflow"), ErrorNumbers.Error_TypeIsNotRootActivity);
239
ValidationError
error = new ValidationError(SR.GetString(SR.Error_GetCalleeWorkflow, invokeWorkflow.TargetWorkflow), ErrorNumbers.Error_GetCalleeWorkflow);
251
ValidationError
validationError = new ValidationError(SR.GetString(SR.Error_ExecWithActivationReceive), ErrorNumbers.Error_ExecWithActivationReceive);
276
ValidationError
validationError = new ValidationError(SR.GetString(SR.Error_ExecInAtomicScope), ErrorNumbers.Error_ExecInAtomicScope);
287
ValidationError
validationError = new ValidationError(SR.GetString(SR.Error_ParameterNotFound, paramBinding.ParameterName), ErrorNumbers.Error_ParameterNotFound);
InvokeWebService.cs (6)
435
ValidationError
error = new ValidationError(SR.GetString(SR.Error_TypePropertyInvalid, "ProxyClass"), ErrorNumbers.Error_PropertyNotSet);
449
validationErrors.Add(
ValidationError
.GetNotSetValidationError("MethodName"));
455
ValidationError
error = new ValidationError(SR.GetString(SR.Error_MethodNotExists, "MethodName", invokeWebService.MethodName), ErrorNumbers.Error_MethodNotExists);
481
ValidationError
validationError =
ValidationError
.GetNotSetValidationError(paramName);
499
foreach (
ValidationError
validationError in variableErrors)
Rules\ArithmeticLiteral.cs (1)
304
out
ValidationError
error)
Rules\DeclarativeExpressionConditionDeclaration.cs (7)
167
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_EmptyExpression);
383
ValidationError
validationError = new ValidationError(message, ErrorNumbers.Error_ConditionNotFound);
409
ValidationError
validationError = new ValidationError(genericErrorMsg, errorNumber);
415
foreach (
ValidationError
actualError in actualConditionErrors)
417
ValidationError
validationError = new ValidationError(genericErrorMsg + " " + actualError.ErrorText, errorNumber);
430
ValidationError
validationError = new ValidationError(message, ErrorNumbers.Error_DuplicateConditions);
448
ValidationError
validationError = new ValidationError(message, ErrorNumbers.Error_InvalidConditionName);
Rules\Executor.cs (3)
705
ValidationError
error;
752
ValidationError
error;
810
ValidationError
error;
Rules\Expressions.cs (38)
50
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
119
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
182
ValidationError
error;
906
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
930
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_BindingTypeMissing);
948
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CannotResolveMember);
958
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CouldNotDetermineMemberType);
967
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
1061
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
1085
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_BindingTypeMissing);
1103
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CannotResolveMember);
1113
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CouldNotDetermineMemberType);
1124
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CannotResolveMember);
1269
ValidationError
error = null;
1733
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
1742
ValidationError
error = new ValidationError(Messages.NullDirectionTarget, ErrorNumbers.Error_ParameterNotSet);
1751
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CodeExpressionNotHandled);
1891
ValidationError
error = new ValidationError(Messages.NullTypeType, ErrorNumbers.Error_ParameterNotSet);
1900
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
1996
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
2004
ValidationError
error = new ValidationError(Messages.NullCastExpr, ErrorNumbers.Error_ParameterNotSet);
2013
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CodeExpressionNotHandled);
2021
ValidationError
error = new ValidationError(Messages.NullCastType, ErrorNumbers.Error_ParameterNotSet);
2043
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
2102
ValidationError
error;
2115
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
2258
ValidationError
error = null;
2637
ValidationError
error = null;
2914
ValidationError
error;
3221
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidAssignTarget);
3229
ValidationError
error = new ValidationError(Messages.NullTypeType, ErrorNumbers.Error_ParameterNotSet);
3247
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
3261
ValidationError
error = new ValidationError(Messages.ArraySizeInvalid, ErrorNumbers.Error_ParameterNotSet);
3279
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
3292
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ParameterNotSet);
3305
ValidationError
error;
3342
ValidationError
error = new ValidationError(Messages.ArraySizeBoth, ErrorNumbers.Error_ParameterNotSet);
3354
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_OperandTypesIncompatible);
Rules\Literal.cs (2)
418
out
ValidationError
error)
494
out
ValidationError
error)
Rules\Parser\Parser.cs (8)
267
ValidationError
error;
449
ValidationError
error;
1685
ValidationError
error = null;
1945
ValidationError
error = null;
2548
ValidationError
error = null;
2810
ValidationError
error = Validator.Errors[0];
2826
ValidationError
error = Validator.Errors[0];
2842
ValidationError
error = Validator.Errors[0];
Rules\Rule.cs (2)
168
ValidationError
oldError = errors[i];
170
ValidationError
newError = new ValidationError(prefix + oldError.ErrorText, oldError.ErrorNumber, oldError.IsWarning);
Rules\RuleAction.cs (5)
96
ValidationError
error = new ValidationError(Messages.NullUpdate, ErrorNumbers.Error_ParameterNotSet);
114
ValidationError
error = new ValidationError(Messages.InvalidWildCardInPathQualifier, ErrorNumbers.Error_InvalidWildCardInPathQualifier);
153
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_InvalidUpdate);
164
ValidationError
error = new ValidationError(Messages.UpdateNotThis, ErrorNumbers.Error_InvalidUpdate);
239
ValidationError
error = new ValidationError(Messages.NullStatement, ErrorNumbers.Error_ParameterNotSet);
Rules\RuleAttributes.cs (2)
52
ValidationError
error = null;
325
ValidationError
error;
Rules\RuleSet.cs (1)
107
ValidationError
error = new ValidationError(Messages.Error_DuplicateRuleName, ErrorNumbers.Error_DuplicateConditions);
Rules\RuleSetReference.cs (6)
138
ValidationError
validationError = new ValidationError(message, ErrorNumbers.Error_RuleSetNotFound);
164
foreach (
ValidationError
actualError in actualRuleSetErrors)
166
ValidationError
validationError = new ValidationError(actualError.ErrorText, errorNumber);
173
foreach (
ValidationError
actualError in actualRuleSetErrors)
175
ValidationError
validationError = new ValidationError(genericErrorMsg + " " + actualError.ErrorText, errorNumber);
206
ValidationError
validationError = new ValidationError(message, ErrorNumbers.Error_InvalidRuleSetName);
Rules\RuleValidation.cs (37)
991
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_ConditionMustBeBoolean);
1059
internal void AddError(
ValidationError
error)
1072
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CyclicalExpression);
1120
internal static bool TypesAreAssignable(Type rhsType, Type lhsType, CodeExpression rhsExpression, out
ValidationError
error)
1140
internal static bool ExplicitConversionSpecified(Type fromType, Type toType, out
ValidationError
error)
1158
ValidationError
dummyError; // so we don't return an error
1199
internal static MethodInfo FindImplicitConversion(Type fromType, Type toType, out
ValidationError
error)
1274
ValidationError
dummyError; // so we don't return an error
1375
internal static MethodInfo FindExplicitConversion(Type fromType, Type toType, out
ValidationError
error)
1378
ValidationError
dummyError; // don't return transient errors
1880
ValidationError
error;
1891
internal static bool StandardImplicitConversion(Type rhsType, Type lhsType, CodeExpression rhsExpression, out
ValidationError
error)
2226
ValidationError
error;
2249
ValidationError
error;
2261
private static bool CheckValueRange(CodeExpression rhsExpression, Type lhsType, out
ValidationError
error)
2325
ValidationError
error = new ValidationError(message, errorNumber);
2336
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CannotResolveMember);
2347
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CannotResolveMember);
2508
internal bool Match(Argument argument, string methodName, int argPosition, out
ValidationError
error)
2596
ValidationError
dummy;
2942
private delegate
ValidationError
BuildArgCountMismatchError(string name, int numArguments);
2944
private static void EvaluateCandidate(List<CandidateMember> candidates, MemberInfo candidateMember, ParameterInfo[] parameters, List<Argument> arguments, out
ValidationError
error, BuildArgCountMismatchError buildArgCountMismatchError)
3132
ValidationError
tempError = null;
3149
internal RuleConstructorExpressionInfo ResolveConstructor(Type targetType, BindingFlags constructorBindingFlags, List<CodeExpression> argumentExprs, out
ValidationError
error)
3190
internal RuleMethodInvokeExpressionInfo ResolveMethod(Type targetType, string methodName, BindingFlags methodBindingFlags, List<CodeExpression> argumentExprs, out
ValidationError
error)
3285
ValidationError
error;
3448
static List<CandidateMember> GetCandidateMethods(string methodName, List<MethodInfo> methods, List<Argument> arguments, out
ValidationError
error)
3457
ValidationError
tempError = null;
3493
static List<CandidateMember> GetCandidateConstructors(List<ConstructorInfo> constructors, List<Argument> arguments, out
ValidationError
error)
3502
ValidationError
tempError = null;
3538
internal RulePropertyExpressionInfo ResolveIndexerProperty(Type targetType, BindingFlags bindingFlags, List<CodeExpression> argumentExprs, out
ValidationError
error)
3638
private static List<CandidateMember> GetCandidateIndexers(List<PropertyInfo> indexerProperties, List<Argument> arguments, out
ValidationError
error)
3647
ValidationError
tempError = null;
3714
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_UnableToResolveType);
3751
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_UnableToResolveType);
3832
ValidationError
error = new ValidationError(Messages.Error_ConfigFileMissingOrInvalid, ErrorNumbers.Error_ConfigFileMissingOrInvalid);
3881
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_TypeNotAuthorized);
Rules\Statements.cs (6)
43
ValidationError
error = new ValidationError(Messages.NullInvokeStatementExpression, ErrorNumbers.Error_ParameterNotSet);
54
ValidationError
error = new ValidationError(Messages.InvokeNotHandled, ErrorNumbers.Error_CodeExpressionNotHandled);
121
ValidationError
error = new ValidationError(Messages.NullAssignLeft, ErrorNumbers.Error_LeftOperandMissing);
135
ValidationError
error = new ValidationError(Messages.NullAssignRight, ErrorNumbers.Error_RightOperandMissing);
152
ValidationError
error = new ValidationError(Messages.NullAssignLeft, ErrorNumbers.Error_LeftOperandInvalidType);
165
ValidationError
error = null;
Rules\Walker.cs (1)
128
ValidationError
error = new ValidationError(message, ErrorNumbers.Error_CodeExpressionNotHandled);
StateValidator.cs (1)
92
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
WebServiceFault.cs (1)
187
validationErrors.Add(
ValidationError
.GetNotSetValidationError("InputActivityName"));
WebServiceReceive.cs (12)
493
ValidationError
error = new ValidationError(SR.GetString(SR.Error_ActivationActivityNotFirst), ErrorNumbers.Error_ActivationActivityNotFirst);
501
ValidationError
error = new ValidationError(SR.GetString(SR.Error_ActivationActivityInsideLoop), ErrorNumbers.Error_ActivationActivityInsideLoop);
511
ValidationError
error = new ValidationError(SR.GetString(SR.Error_WebServiceReceiveNotMarkedActivate), ErrorNumbers.Error_WebServiceReceiveNotMarkedActivate);
528
ValidationError
error = new ValidationError(SR.GetString(SR.Error_TypePropertyInvalid, "InterfaceType"), ErrorNumbers.Error_PropertyNotSet);
534
ValidationError
error = new ValidationError(SR.GetString(SR.Error_InterfaceTypeNotInterface, "InterfaceType"), ErrorNumbers.Error_InterfaceTypeNotInterface);
542
validationErrors.Add(
ValidationError
.GetNotSetValidationError("MethodName"));
549
ValidationError
error = new ValidationError(SR.GetString(SR.Error_MethodNotExists, "MethodName", webServiceReceive.MethodName), ErrorNumbers.Error_MethodNotExists);
558
foreach (
ValidationError
parameterTypeError in parameterTypeErrors)
587
ValidationError
validationError = new ValidationError(SR.GetString(SR.Error_TypeNotPublicSerializable, paramName, paramType.FullName), ErrorNumbers.Error_TypeNotPublicSerializable);
593
ValidationError
validationError =
ValidationError
.GetNotSetValidationError(paramName);
605
foreach (
ValidationError
validationError in variableErrors)
WebServiceResponse.cs (6)
312
validationErrors.Add(
ValidationError
.GetNotSetValidationError("InputActivityName"));
385
foreach (
ValidationError
parameterTypeError in parameterTypeErrors)
422
ValidationError
validationError = new ValidationError(SR.GetString(SR.Error_TypeNotPublicSerializable, paramName, paramType.FullName), ErrorNumbers.Error_TypeNotPublicSerializable);
428
ValidationError
validationError =
ValidationError
.GetNotSetValidationError(paramName);
440
foreach (
ValidationError
variableError in variableErrors)
While.cs (1)
176
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
System.Workflow.ComponentModel (69)
AuthoringOM\Behaviors\Compensate.cs (2)
226
ValidationError
error = null;
230
error =
ValidationError
.GetNotSetValidationError("TargetActivityName");
AuthoringOM\Behaviors\ExceptionHandler.cs (1)
177
ValidationError
error = null;
AuthoringOM\Bind.cs (2)
249
internal static
ValidationError
ValidateTypesInPath(Type srcType, string path)
251
ValidationError
error = null;
AuthoringOM\Compiler\Validation\ActivityValidator.cs (2)
34
ValidationError
error = new ValidationError(SR.GetString(SR.Error_RootIsNotEnabled), ErrorNumbers.Error_RootIsNotEnabled);
44
ValidationError
identifierError = ValidationHelpers.ValidateNameProperty("Name", manager, activity.Name);
AuthoringOM\Compiler\Validation\BindValidator.cs (14)
54
ValidationError
error = null;
102
ValidationError
error = new ValidationError(SR.GetString(SR.Error_NoEnclosingContext, activity.Name), ErrorNumbers.Error_NoEnclosingContext);
108
ValidationError
error = null;
239
ValidationError
error = null;
282
ValidationError
error = new ValidationError(SR.GetString(SR.Error_NoEnclosingContext, activity.Name), ErrorNumbers.Error_NoEnclosingContext);
288
ValidationError
error = null;
436
ValidationError
error = null;
477
ValidationError
error = new ValidationError(SR.GetString(SR.Error_HandlerReadOnly), ErrorNumbers.Error_HandlerReadOnly);
485
ValidationError
error = new ValidationError(SR.GetString(SR.Error_TypeNotDelegate, validationBindContext.TargetType.FullName), ErrorNumbers.Error_TypeNotDelegate);
499
ValidationError
error = new ValidationError(SR.GetString(SR.Error_NoEnclosingContext, activity.Name), ErrorNumbers.Error_NoEnclosingContext);
562
ValidationError
error = new ValidationError(message, errorNumber);
596
ValidationError
error = null;
763
ValidationError
error = null;
796
ValidationError
error = null;
AuthoringOM\Compiler\Validation\CompositeActivityValidator.cs (1)
51
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (2)
125
errors.Add(
ValidationError
.GetNotSetValidationError(GetFullPropertyName(manager)));
216
ValidationError
error = new ValidationError(SR.GetString(SR.Error_CantResolveEventHandler, dependencyProperty.Name, propValue as string), ErrorNumbers.Error_CantResolveEventHandler);
AuthoringOM\Compiler\Validation\SynchronizationValidator.cs (1)
22
ValidationError
error = ValidationHelpers.ValidateIdentifier("SynchronizationHandles", manager, handle);
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (4)
28
ValidationError
error = new ValidationError(SR.GetString(SR.Error_AtomicScopeWithFaultHandlersActivityDecl, activity.Name), ErrorNumbers.Error_AtomicScopeWithFaultHandlersActivityDecl);
36
ValidationError
error = new ValidationError(SR.GetString(SR.Error_AtomicScopeWithCancellationHandlerActivity, activity.Name), ErrorNumbers.Error_AtomicScopeWithCancellationHandlerActivity);
78
ValidationError
timeoutError = new ValidationError(SR.GetString(SR.Error_NegativeValue, new object[] { atomicTransaction.TimeoutDuration.ToString(), "TimeoutDuration" }), ErrorNumbers.Error_NegativeValue);
86
public override
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
AuthoringOM\Compiler\Validation\ValidationError.cs (2)
77
public static
ValidationError
GetNotSetValidationError(string propertyName)
79
ValidationError
error = new ValidationError(SR.GetString(SR.Error_PropertyNotSet, propertyName), ErrorNumbers.Error_PropertyNotSet);
AuthoringOM\Compiler\Validation\ValidationErrorCollection.cs (11)
10
public sealed class ValidationErrorCollection : Collection<
ValidationError
>
21
public ValidationErrorCollection(IEnumerable<
ValidationError
> value)
29
protected override void InsertItem(int index,
ValidationError
item)
37
protected override void SetItem(int index,
ValidationError
item)
45
public void AddRange(IEnumerable<
ValidationError
> value)
50
foreach (
ValidationError
error in value)
60
foreach (
ValidationError
e in this)
76
foreach (
ValidationError
e in this)
86
public
ValidationError
[] ToArray()
88
ValidationError
[] errorsArray = new
ValidationError
[this.Count];
AuthoringOM\Compiler\Validation\Validator.cs (1)
22
public virtual
ValidationError
ValidateActivityChange(Activity activity, ActivityChangeAction action)
AuthoringOM\Compiler\XomlCompiler.cs (3)
827
ValidationError
identifierError = null;
1097
ValidationError
error = new ValidationError(SR.GetString(SR.Error_CodeWithinNotAllowed), ErrorNumbers.Error_CodeWithinNotAllowed);
1105
foreach (
ValidationError
error in errors)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (13)
65
ValidationError
error = new ValidationError(SR.GetString(SR.Error_ConfigFileMissingOrInvalid), ErrorNumbers.Error_ConfigFileMissingOrInvalid);
262
ValidationError
error = new ValidationError(SR.GetString(SR.Error_TypeNotAuthorized, referenceType), ErrorNumbers.Error_TypeNotAuthorized);
543
internal static WorkflowCompilerError CreateXomlCompilerError(
ValidationError
error, WorkflowCompilerParameters parameters)
566
internal static ValidationErrorCollection MorphIntoFriendlyValidationErrors(IEnumerable<
ValidationError
> errors)
570
foreach (
ValidationError
error in errors)
575
if (error.GetType() == typeof(
ValidationError
))
577
ValidationError
error2 = new ValidationError(GetPrettifiedErrorText(error), error.ErrorNumber, error.IsWarning);
589
private static string GetFileName(
ValidationError
error)
605
private static string GetPrettifiedErrorText(
ValidationError
error)
626
private static uint GetValue(
ValidationError
error, object key)
674
foreach (
ValidationError
error in errors)
684
ValidationError
error = new ValidationError(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException);
689
ValidationError
error = new ValidationError(SR.GetString(SR.Error_ValidatorThrewException, e.GetType().FullName, validator.GetType().FullName, activity.Name, e.ToString()), ErrorNumbers.Error_ValidatorThrewException);
AuthoringOM\Design\ActivityDesigner.cs (2)
462
ValidationError
error = validationErrors[i] as
ValidationError
;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
288
ValidationError
error = errors[i];
AuthoringOM\ScheduleChanges.cs (1)
678
ValidationError
error = validator.ValidateActivityChange(ownerActivity, this);
Shared\ValidationHelpers.cs (6)
50
internal static
ValidationError
ValidateIdentifier(string propName, IServiceProvider context, string identifier)
55
ValidationError
error = null;
74
internal static
ValidationError
ValidateNameProperty(string propName, IServiceProvider context, string identifier)
79
ValidationError
error = null;
115
ValidationError
duplicateError = new ValidationError(SR.GetString(SR.Error_DuplicatedActivityID, activity.QualifiedName), ErrorNumbers.Error_DuplicatedActivityID);
236
foreach (
ValidationError
error in errors)
System.Workflow.Runtime (2)
System\Activities\Statements\Interop.cs (1)
1021
foreach (System.Workflow.ComponentModel.Compiler.
ValidationError
error in errors)
WorkflowDefinitionDispenser.cs (1)
235
foreach (
ValidationError
error in validator.Validate(validationManager, root))
System.WorkflowServices (3)
System\Workflow\Activities\ValidationHelper.cs (2)
862
internal static IEnumerable<
ValidationError
> ValidateParameterBindings(
987
internal static IEnumerable<
ValidationError
> ValidateServiceModelAttributes(
System\Workflow\Runtime\WorkflowDefinitionContext.cs (1)
113
foreach (
ValidationError
error in validator.Validate(validationManager, rootActivity))