Class ValidationResult
Used to return an error if something is invalid.
Inheritance
System.Object
ValidationResult
Namespace: DirectScale.Disco.Extension
Assembly: DirectScale.Disco.Extension.Abstractions.dll
Syntax
public class ValidationResult : Object
Constructors
ValidationResult()
Declaration
public ValidationResult()
Properties
ErrorMessage
Ignored if IsValid is true, required otherwise.
Declaration
public string ErrorMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsValid
Set to false if there is an error.
Declaration
public bool IsValid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |