menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BeforeSendEventArgs - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BeforeSendEventArgs

    Represents the class for BeforeSend event arguments.

    Inheritance
    System.Object
    BeforeSendEventArgs
    Namespace: Syncfusion.Blazor.FileManager
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeSendEventArgs : Object

    Constructors

    BeforeSendEventArgs()

    Declaration
    public BeforeSendEventArgs()

    Properties

    Action

    Gets or sets the name of the AJAX action that will be performed by the FileManager.

    Declaration
    public string Action { get; set; }
    Property Value
    Type
    System.String
    Remarks

    The Action property specifies the name of the AJAX action that is performed by the FileManager when the user performs an action such as uploading a file, renaming a file, or deleting a file. This property is set automatically by the FileManager when the user interacts with the interface, but can also be set manually in custom code. Returns the following actions name

    • Upload
    • Create Folderr
    • Image Preview
    • File Details
    • Rename
    • Delete
    • Duplicate Items
    • Errors

    AjaxSettings

    Gets or sets the AJAX settings for the FileManager.

    Declaration
    public FileManagerAjaxSettings AjaxSettings { get; set; }
    Property Value
    Type
    FileManagerAjaxSettings
    Remarks

    The AjaxSettings property is used to specify the AJAX settings for the FileManager. These settings include details such as the URL to which the FileManager should send AJAX requests, the HTTP method to use for these requests (e.g. POST or GET), and any additional headers or parameters that should be included with the requests.

    Cancel

    Gets or sets a value that indicates whether to cancel the corresponding AJAX request.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    'true' if the AJAX request to server must be cancelled; otherwise 'false'

    CustomData

    Gets or sets the custom data to be sent to the server with each AJAX request.

    Declaration
    public Dictionary<string, object> CustomData { get; set; }
    Property Value
    Type
    System.Collections.Generic.Dictionary<System.String, System.Object>
    Remarks

    The CustomData property is used to specify custom data that should be sent to the server with each AJAX request made by the FileManager. This data can be used by the server-side code to customize the behavior of the FileManager or perform additional processing on the uploaded files. To set the custom data for the FileManager, create a new System.Collections.Generic.Dictionary<, > object and add the desired key-value pairs. Then, assign this object to the CustomData property of the FileManager. Note that the keys and values in the CustomData dictionary must be serializable, since they will be sent to the server as part of the AJAX request.

    HttpClientInstance

    Gets or sets the HttpClient instance through which http request for the file providers are sent.

    Declaration
    public HttpClient HttpClientInstance { get; set; }
    Property Value
    Type
    System.Net.Http.HttpClient
    Remarks

    The users can pass the required JWT token or authentication token with this instance.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved