Class PauseResumeEventArgs
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public class PauseResumeEventArgs : Object
Remarks
This event is triggered when chunk-based file upload operations are paused or resumed. It provides detailed information about the chunk upload progress, including the current chunk being processed, total chunk count, and the file being uploaded. This enables developers to implement custom pause and resume functionality with accurate progress tracking.
Constructors
PauseResumeEventArgs()
Declaration
public PauseResumeEventArgs()
Properties
ChunkCount
Gets or sets the total number of chunks for the file being uploaded.
Declaration
public double ChunkCount { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the total count of chunks that the file is divided into for upload. |
Remarks
This property indicates how many chunks the current file has been divided into for the upload process. The chunk count depends on the file size and the configured chunk size in the uploader settings. This information is useful for calculating upload progress and estimating completion time.
ChunkIndex
Gets or sets the index of the file chunk that is currently paused or resumed.
Declaration
public double ChunkIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the zero-based index of the chunk that is paused or resumed. |
Remarks
This property identifies the specific chunk within the file that is affected by the pause or resume operation. Combined with the total chunk count, it provides precise information about the upload progress and which portion of the file is currently being processed.
ChunkSize
Gets or sets the size of each chunk in bytes for the uploaded file.
Declaration
public double ChunkSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the chunk size in bytes. |
Remarks
This property specifies the size of each chunk that the file is divided into for upload. The chunk size is configured in the uploader settings and determines how the file is split for sequential upload. Larger chunk sizes result in fewer chunks but larger individual transfers.
Event
Gets or sets the original event arguments associated with the pause or resume operation.
Declaration
public EventArgs Event { get; set; }
Property Value
Type | Description |
---|---|
System.EventArgs | An System.EventArgs object containing the original event arguments, or |
Remarks
This property provides access to the underlying event arguments that triggered the pause or resume operation. Note: This property is obsolete and should no longer be used in new implementations. Use other properties of this class for accessing pause/resume information.
File
Gets or sets the details of the file that is being paused or resumed.
Declaration
public FileInfo File { get; set; }
Property Value
Type | Description |
---|---|
FileInfo | A FileInfo object containing the file details, or |
Remarks
This property contains comprehensive information about the file affected by the pause or resume operation, including file name, size, type, and current upload status. This information is essential for tracking upload progress and providing user feedback during pause/resume operations.