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