ValidationProviderExtensionsSetError Method
Sets a validation error message for the indicated property.
Namespace: Aliquo.Windows.BaseAssembly: Aliquo.Windows (in Aliquo.Windows.dll) Version: 5.0.9179.22654
public static void SetError(
this ValidationProvider validationProvider,
string propertyName,
string error
)
<ExtensionAttribute>
Public Shared Sub SetError (
validationProvider As ValidationProvider,
propertyName As String,
error As String
)
- validationProvider ValidationProvider
- Validation provider.
- propertyName String
- Name of the property.
- error String
- Error message (set to to remove the previous message).
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).