Back to Devexpress

CanContinueEventArgs.CanContinue Property

officefileapi-devexpress-dot-compression-dot-cancontinueeventargs.md

latest2.9 KB
Original Source

CanContinueEventArgs.CanContinue Property

Gets or sets the value that specifies whether the process can proceed further.

Namespace : DevExpress.Compression

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public bool CanContinue { get; set; }
vb
Public Property CanContinue As Boolean

Property Value

TypeDescription
Boolean

true , to allow the process to continue; otherwise, false.

|

Remarks

The ZipArchive.Progress and the ZipArchive.Error event handlers allow you to stop the archive creation by setting the CanContinue property of the respective event arguments to false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanContinue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

zip-compression-and-archive-api-examples/CS/CompressionLibraryExamples/ZipExamples.cs#L66

csharp
if (MessageBox.Show(message, "Error", MessageBoxButtons.OKCancel) == DialogResult.Cancel) {
    args.CanContinue = false;
}

zip-compression-and-archive-api-examples/VB/CompressionLibraryExamples/ZipExamples.vb#L65

vb
If MessageBox.Show(message, "Error", MessageBoxButtons.OKCancel) = DialogResult.Cancel Then
    args.CanContinue = False
End If

See Also

Progress

Error

CanContinueEventArgs Class

CanContinueEventArgs Members

DevExpress.Compression Namespace