Click or drag to resize
SlugValidator Class
Make sure input contains only letters, numbers, underscores or hyphens (and optionally spaces).
Inheritance Hierarchy

Namespace:  GeonBit.UI.Entities.TextValidators
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
[SerializableAttribute]
public class SlugValidator : ITextValidator

The SlugValidator type exposes the following members.

Constructors
  NameDescription
Public methodSlugValidator
Create the validator with default params.
Public methodSlugValidator(Boolean)
Create the slug validator.
Top
Properties
  NameDescription
Public propertyAllowSpaces
Set / get if we allow spaces in text.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidateText
Return true if text input is slug.
(Overrides ITextValidatorValidateText(String, String).)
Top
See Also