Show / Hide Table of Contents

Class ValidationSourceExtensions

Extensiones para todos los elementos de tipo IValidationEntry<T> que proveen de métodos de configuración especiales para reglas de validación.

Inheritance
object
ValidationSourceExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Mvvm.dll
Syntax
public static class ValidationSourceExtensions

Methods

| Edit this page View Source

NotEmpty(IValidationEntry<string?>, string)

Registra una regla de validación que indica que la cadena no debe ser null ni Empty.

Declaration
public static IValidationEntry<string> NotEmpty(this IValidationEntry<string?> rule, string error)
Parameters
Type Name Description
IValidationEntry<string> rule

Instancia de reglas de validación.

string error

Mensaje de error a mostrar cuando la cadena no pase esta regla de validación.

Returns
Type Description
IValidationEntry<string>

La misma instancia que rule, permitiendo el uso de sintaxis Fluent.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX