November Happy Hour will be moved to Thursday December 5th.

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: 12.17.2
Syntax
[Obsolete("Use promotion system in EPiServer.Commerce.Marketing instead. Will be removed in a future major release, but not earlier than August 2018.")]
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 true [is valid].

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

true if this instance is valid; otherwise, false.

ValidationError

Gets or sets the validation error.

Declaration
public string ValidationError { get; set; }
Property Value
Type Description
System.String

The validation error.