ShapeValidationResult¶
Namespace: ThinkGeo.Core
This structure represents the result of the validation method performed on a shape.
public struct ShapeValidationResult
Inheritance Object → ValueType → ShapeValidationResult
Remarks:
This is used to determine if an validation rule was broken for a shape. This structure also returns the description of the violation.
Properties¶
IsValid¶
This property describes whether the object has passed its validation method.
public bool IsValid { get; }
Property Value¶
This property returns either true or false, depending on whether the object has passed its
validation method.
Remarks:
None
ValidationErrors¶
This property describes the list of errors if the object did not pass its validation method.
public string ValidationErrors { get; }
Property Value¶
This property returns the list of errors if the object did not pass its
validation method.
Remarks:
If there are multiple errors, they will be separated by semicolons. If the object passed its validations, then this string will be empty.
Constructors¶
ShapeValidationResult(Boolean, String)¶
This constructor allows you to set the IsValid and ValidationErrors properties.
ShapeValidationResult(bool isValid, string validationErrors)
Parameters¶
isValid
Boolean
This parameter describes whether the object has passed its validation method.
validationErrors
String
This parameter describes the list of errors if the object did not pass its
validation method. The errors are separated by semicolons.
Remarks:
None
Methods¶
Equals(Object)¶
This method is an override of the Equals functionality.
bool Equals(object obj)
Parameters¶
obj
Object
Returns¶
Remarks:
None
GetHashCode()¶
This method is an override of the GetHashCode functionality.
int GetHashCode()
Returns¶
Remarks:
None