ValidationProviderExtensionsSetError Method

Sets a validation error message for the indicated property.

Definition

Namespace: Aliquo.Windows.Base
Assembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
C#
public static void SetError(
	this ValidationProvider validationProvider,
	string propertyName,
	string error
)

Parameters

validationProvider  ValidationProvider
Validation provider.
propertyName  String
Name of the property.
error  String
Error message (set to to remove the previous message).

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ValidationProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also