60 references to ValidationError
System.Workflow.Activities (17)
CorrelationValidator.cs (7)
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"));
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,
SetState.cs (3)
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));
StateValidator.cs (7)
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
(
System.Workflow.ComponentModel (4)
AuthoringOM\Behaviors\Compensate.cs (1)
234
error = new
ValidationError
(SR.GetString(SR.Error_CompensateBadTargetTX, "TargetActivityName", compensate.TargetActivityName, compensate.QualifiedName), ErrorNumbers.Error_CompensateBadTargetTX, false, "TargetActivityName");
AuthoringOM\Compiler\Validation\ValidationError.cs (2)
19
:
this
(errorText, errorNumber, false, null)
24
:
this
(errorText, errorNumber, isWarning, null)
AuthoringOM\Compiler\XomlCompiler.cs (1)
833
identifierError = new
ValidationError
(SR.GetString(SR.Error_DuplicatedActivityID, currentActivity.QualifiedName), ErrorNumbers.Error_DuplicatedActivityID, false, "Name");
System.WorkflowServices (39)
System\Workflow\Activities\ReceiveActivityValidator.cs (1)
38
new
ValidationError
(
System\Workflow\Activities\SendActivityValidator.cs (1)
38
new
ValidationError
(
System\Workflow\Activities\ValidationHelper.cs (37)
108
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"));