ValidationResult
Namespace: Wisej.Web.Ext.Mermaid
Assembly: Wisej.Web.Ext.Mermaid (4.1.0.0)
Represents the result of the validation of a Mermaid diagram.
- C#
- VB.NET
public class ValidationResult
Public Class ValidationResult
This type is returned by ValidateAsync.
Example:
Checking the current diagram:
ValidationResult result = await mermaid.ValidateAsync(mermaid.Diagram);
if (!result.Valid)
Wisej.Web.MessageBox.Show(result.Message ?? "Validation failed.");
Properties
Message
String: Returns the error message associated with the failure, or null if the validation succeeded.
Valid
Boolean: Returns true if the diagram is valid, or false if the diagram is invalid and Message contains details about the failure.