Table of Contents

DownloadProgress 类

命名空间
ClassIsland.Core.Models
程序集
ClassIsland.Core.dll

代表下载进度

public class DownloadProgress : ObservableRecipient, INotifyPropertyChanged, INotifyPropertyChanging
继承
DownloadProgress
实现
继承成员

构造函数

DownloadProgress()

Initializes a new instance of the ObservableRecipient class.

public DownloadProgress()

备注

This constructor will produce an instance that will use the Default instance to perform requested operations. It will also be available locally through the Messenger property.

属性

CancellationToken

下载操作取消令牌

public CancellationToken CancellationToken { get; set; }

属性值

CancellationToken

Exception

下载时产生的异常

public Exception? Exception { get; set; }

属性值

Exception

IsDownloading

是否正在下载

public bool IsDownloading { get; set; }

属性值

bool

Progress

下载进度

public double Progress { get; set; }

属性值

double

方法

Cancel()

取消下载。

public void Cancel()