alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class FormValidator

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    FormValidator
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    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 bool value indicating whether to dispose managed resources. Pass true to release both managed and unmanaged resources; false to release unmanaged resources only.

    Overrides
    OwningComponentBase.Dispose(bool)
    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
    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved