Class ValidationFailedEventArgs
Specifies the event triggers when the barcode input is an invalid string.
Inherited Members
Namespace: Syncfusion.Blazor.BarcodeGenerator
Assembly: Syncfusion.Blazor.BarcodeGenerator.dll
Syntax
public class ValidationFailedEventArgs
Remarks
Raised when barcode input validation fails. The Message property contains a user-friendly description of the validation error.
Examples
<SfBarcodeGenerator Width="200" Height="150" Value="A" Type="BarcodeType.Code11" OnValidationFailed="@OnInvalid">
</SfBarcodeGenerator>
@code{
public void OnInvalid(ValidationFailedEventArgs args)
{
Console.WriteLine($"Validation failed: {args.Message}");
}
}
Constructors
ValidationFailedEventArgs()
Declaration
public ValidationFailedEventArgs()
Properties
Message
Gets or sets the validation error message describing why the barcode input is invalid.
Declaration
public string Message { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string containing a human-readable error message. Never null or empty. |