Class StringPropertyNoWhiteSpace
Checks whether a string does not only contains white-spaces or nothing
Inheritance
System.Object
StringPropertyNoWhiteSpace
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.UI.MVC
Assembly: Simplic.UI.dll
Syntax
public class StringPropertyNoWhiteSpace : IPropertyValidator
Properties
| Improve this Doc View SourceMessage
Gets the error message
Declaration
[Browsable(false)]
public IValidationErrorMessage Message { get; }
Property Value
Type | Description |
---|---|
IValidationErrorMessage |
Name
Gets the name of the validator
Declaration
[Browsable(false)]
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceValidate(Object)
Check whether a string is not null and does not only contains white spaces
Declaration
public bool Validate(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Value to check |
Returns
Type | Description |
---|---|
System.Boolean | True if value does not only contain white-spaces |