Class ValidationResult
Implements operations for and represents the validation result.
Inheritance
System.Object
ValidationResult
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: Mediachase.Commerce.Marketing
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class ValidationResult
Constructors
ValidationResult()
Initializes a new instance of the ValidationResult class.
Declaration
public ValidationResult()
ValidationResult(Boolean, String)
Initializes a new instance of the ValidationResult class.
Declaration
public ValidationResult(bool isValid, string error)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isValid | if set to |
System.String | error | The error. |
Properties
IsValid
Gets or sets a value indicating whether this instance is valid.
Declaration
public bool IsValid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ValidationError
Gets or sets the validation error.
Declaration
public string ValidationError { get; set; }
Property Value
Type | Description |
---|---|
System.String | The validation error. |