Class FormValidator
Inherited Members
Namespace: Syncfusion.Blazor.DataForm
Assembly: Syncfusion.Blazor.dll
Syntax
public class FormValidator : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
FormValidator()
Declaration
public FormValidator()
Methods
Dispose()
Releases the unmanaged resources used by the FormValidator component and optionally disposes of managed resources.
Declaration
public virtual void Dispose()
Remarks
Calling this method will invoke the Dispose(bool) method with true to ensure that all resources held by the validator, including references to Syncfusion.Blazor.DataForm.FormValidator.Parent and Syncfusion.Blazor.DataForm.FormValidator.ChildContent, are released properly.
Examples
The following example demonstrates how to explicitly call Dispose() on your FormValidator instance:
FormValidator validator = new FormValidator();
validator.Dispose();
Dispose(bool)
Releases the unmanaged resources used by the FormValidator component and optionally disposes managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | A |
Overrides
Remarks
When disposing is true, this method releases references to Syncfusion.Blazor.DataForm.FormValidator.Parent and Syncfusion.Blazor.DataForm.FormValidator.ChildContent, ensuring that no memory leaks occur in the component lifecycle.
Always call Dispose() instead of this overload unless you need to customize disposal behavior.
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |