58 references to AddValidationError
System.Activities (5)
Microsoft\VisualBasic\Activities\VisualBasicNameShadowingConstraint.cs (1)
36
Constraint.
AddValidationError
(context, new ValidationError(SR.AmbiguousVBVariableReference(locationReference.Name)));
System\Activities\Statements\Rethrow.cs (2)
123
Constraint.
AddValidationError
(context, new ValidationError(SR.RethrowMustBeAPublicChild(rethrowActivity.DisplayName), rethrowActivity));
134
Constraint.
AddValidationError
(context, new ValidationError(SR.RethrowNotInATryCatch(rethrowActivity.DisplayName), rethrowActivity));
System\Activities\Validation\AddValidationError.cs (1)
71
Constraint.
AddValidationError
(context, new ValidationError(this.Message.Get(context), isWarning, propertyName));
System\Activities\Validation\AssertValidation.cs (1)
86
Constraint.
AddValidationError
(context, new ValidationError(this.Message.Get(context), isWarning, propertyName));
System.ServiceModel.Activities (50)
System\ServiceModel\Activities\ContractValidationHelper.cs (37)
162
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(action, "Fault Action", targetFault.Action, targetOperation.Name, targetOperation.DeclaringContract.Name)));
166
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(NamingHelper.XmlName(name), "Fault Name", targetFault.Name, targetOperation.Name, targetOperation.DeclaringContract.Name)));
170
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(targetOperation.DeclaringContract.Namespace, "Fault Namespace", targetFault.Namespace, targetOperation.Name, targetOperation.DeclaringContract.Name)));
174
Constraint.
AddValidationError
(context, new ValidationError(SR2.ProtectionLevelNotSupported(targetOperation.Name, targetOperation.DeclaringContract.Name)));
187
Constraint.
AddValidationError
(context, new ValidationError(SR2.FaultTypeMismatch(faultType.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
197
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(overridingAction, "Action", targetMessage.Action, targetOperation.Name, targetOperation.DeclaringContract.Name)));
212
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(declaredMessageType.ToString(), "type", targetMessage.MessageType.ToString(), operation.Name, operation.DeclaringContract.Name)));
217
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(declaredMessageType.ToString(), "type", "null", operation.Name, operation.DeclaringContract.Name)));
226
Constraint.
AddValidationError
(context, new ValidationError(SR2.BodyCannotBeNull));
234
Constraint.
AddValidationError
(context, new ValidationError(SR2.ExtraReturnValue));
238
Constraint.
AddValidationError
(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(declaredMessageType.FullName, targetMessage.Body.ReturnValue.Type.Name, operation.Name, operation.DeclaringContract.Name)));
245
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterNumberMismatch(declaredMessageType.FullName, operation.Name, operation.DeclaringContract.Name)));
249
Constraint.
AddValidationError
(context, new ValidationError(SR2.MessageContentCannotHaveMoreThanOneParameter(operation.Name, operation.DeclaringContract.Name)));
255
Constraint.
AddValidationError
(context, new ValidationError(SR2.MessageTypeMismatch(targetMessage.Body.Parts[0].Type.FullName, operation.Name, operation.DeclaringContract.Name)));
272
Constraint.
AddValidationError
(context, new ValidationError(SR2.MessageHeaderNotSupported(operation.Name, operation.DeclaringContract.Name)));
276
Constraint.
AddValidationError
(context, new ValidationError(SR2.MessagePropertyIsNotSupported(operation.Name, operation.DeclaringContract.Name)));
280
Constraint.
AddValidationError
(context, new ValidationError(SR2.ProtectionLevelIsNotSupported(operation.Name, operation.DeclaringContract.Name)));
287
Constraint.
AddValidationError
(context, new ValidationError(SR2.MessageCannotBeEmpty(operation.Name, operation.DeclaringContract.Name)));
328
Constraint.
AddValidationError
(context, new ValidationError(SR2.NotSupportMoreThanOneParametersInMessageContract(operation.Name, operation.DeclaringContract.Name)));
336
Constraint.
AddValidationError
(context, new ValidationError(SR2.WrapperNotSupportedInMessageContract(operation.Name, operation.DeclaringContract.Name)));
341
Constraint.
AddValidationError
(context, new ValidationError(SR2.WrapperNotSupportedInMessageContract(operation.Name, operation.DeclaringContract.Name)));
346
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterNumberMismatch(declaredMessageType.FullName, operation.Name, operation.DeclaringContract.Name)));
350
Constraint.
AddValidationError
(context, new ValidationError(SR2.MessageContentCannotHaveMoreThanOneParameter(operation.Name, operation.DeclaringContract.Name)));
362
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(partName, "parameter name", targetPart.Name, operation.Name, operation.DeclaringContract.Name)));
366
Constraint.
AddValidationError
(context, new ValidationError(SR2.PropertyMismatch(partNamespace, "parameter namespace", targetPart.Namespace, operation.Name, operation.DeclaringContract.Name)));
372
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterTypeMismatch(declaredMessageType.FullName, targetPart.Type.FullName, operation.Name, operation.DeclaringContract.Name)));
376
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterTypeMismatch(TypeHelper.VoidType.FullName, targetPart.Type.FullName, operation.Name, operation.DeclaringContract.Name)));
381
Constraint.
AddValidationError
(context, new ValidationError(SR2.ProtectionLevelIsNotSupported(operation.Name, operation.DeclaringContract.Name)));
400
Constraint.
AddValidationError
(context, new ValidationError(SR2.UnwrappedMessageNotSupported(targetOperation.Name, targetOperation.DeclaringContract.Name)));
404
Constraint.
AddValidationError
(context, new ValidationError(SR2.UnwrappedMessageNotSupported(targetOperation.Name, targetOperation.DeclaringContract.Name)));
420
Constraint.
AddValidationError
(context, new ValidationError(SR2.FirstParameterDoesnotMatchTheReturnValue(argument.ArgumentType.FullName, targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
426
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterPositionMismatch(targetMessageBody.ReturnValue.Name, targetOperation.Name, targetOperation.DeclaringContract.Name, "0")));
431
Constraint.
AddValidationError
(context, new ValidationError(SR2.ReturnValueMissing(targetMessageBody.ReturnValue.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
444
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterTypeMismatch(targetPart.Name, targetPart.Type.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
450
Constraint.
AddValidationError
(context, new ValidationError(SR2.ParameterPositionMismatch(targetPart.Name, targetOperation.Name, targetOperation.DeclaringContract.Name, benchmarkIndex)));
455
Constraint.
AddValidationError
(context, new ValidationError(SR2.MissingParameter(targetPart.Name, targetOperation.Name, targetOperation.DeclaringContract.Name)));
470
Constraint.
AddValidationError
(context, new ValidationError(SR2.ExtraParameter(name, targetOperation.Name, targetOperation.DeclaringContract.Name)));
System\ServiceModel\Activities\ReceiveMessageContent.cs (1)
218
Constraint.
AddValidationError
(context, new ValidationError(SR.MisuseOfMessageContent(targetOperation.Name, targetOperation.DeclaringContract.Name)));
System\ServiceModel\Activities\ReceiveParametersContent.cs (1)
186
Constraint.
AddValidationError
(context, new ValidationError(SR.MisuseOfParameterContent(targetOperation.Name, targetOperation.DeclaringContract.Name)));
System\ServiceModel\Activities\SendMessageContent.cs (1)
235
Constraint.
AddValidationError
(context, new ValidationError(SR.MisuseOfMessageContent(targetOperation.Name, targetOperation.DeclaringContract.Name)));
System\ServiceModel\Activities\SendParametersContent.cs (1)
207
Constraint.
AddValidationError
(context, new ValidationError(SR.MisuseOfParameterContent(targetOperation.Name, targetOperation.DeclaringContract.Name)));
System\ServiceModel\Activities\WorkflowService.cs (9)
1054
Constraint.
AddValidationError
(context, new ValidationError(SR.MissingOperationName(this.DisplayName)));
1084
Constraint.
AddValidationError
(context, new ValidationError(SR.OperationDoesNotExistInContract(receiveActivity.OperationName, contractName, contractNamespace)));
1119
Constraint.
AddValidationError
(context, new ValidationError(SR.TargetContractCannotBeOneWayWithTransactionFlow(targetOperation.Name, targetOperation.DeclaringContract.Name)));
1125
Constraint.
AddValidationError
(context, new ValidationError(SR.ReceiveIsNotInTRS(targetOperation.Name, targetOperation.DeclaringContract.Name)));
1132
Constraint.
AddValidationError
(context, new ValidationError(SR.ReceiveIsInTRSWhenTransactionFlowNotAllowed(targetOperation.Name, targetOperation.DeclaringContract.Name), true));
1144
Constraint.
AddValidationError
(context, new ValidationError(SR.PropertyMismatch(receiveActivity.SerializerOption.ToString(), "SerializerOption", targetSerializerOption.ToString(), targetOperation.DeclaringContract.Name, targetSerializerOption.ToString())));
1154
Constraint.
AddValidationError
(context, new ValidationError(SR.PropertyMismatch(receiveProtectionLevelString, "ProtectionLevel", targetProtectionLevelString, targetOperation.Name, targetOperation.DeclaringContract.Name)));
1171
Constraint.
AddValidationError
(context, new ValidationError(SR.MissingKnownTypes(targetType.FullName, targetOperation.Name, targetOperation.DeclaringContract.Name)));
1267
Constraint.
AddValidationError
(context, new ValidationError(SR.OnewayContractIsImplementedAsTwoWay(property.Operation.Name, contractName)));
System.Workflow.Runtime (3)
System\Activities\Statements\Interop.cs (3)
1023
Constraint.
AddValidationError
(context, new ValidationError(error.ErrorText, error.IsWarning, error.PropertyName));
1140
Constraint.
AddValidationError
(context, new ValidationError(message));
1151
Constraint.
AddValidationError
(context, new ValidationError(message));