ActionItem 类
- 程序集
- ClassIsland.Shared.dll
代表一个行动项。
public class ActionItem : ObservableRecipient, INotifyPropertyChanged, INotifyPropertyChanging
- 继承
-
ActionItem
- 实现
- 继承成员
属性
Exception
行动项错误。无则为 null。
[ExcludeFromCodeCoverage]
[JsonIgnore]
public string? Exception { get; set; }
属性值
Id
行动项 ID。
[ExcludeFromCodeCoverage]
public string Id { get; set; }
属性值
IsCompleted
行动已执行完成
[ExcludeFromCodeCoverage]
public bool IsCompleted { get; set; }
属性值
IsRevertActionItem
[JsonIgnore]
public bool IsRevertActionItem { get; set; }
属性值
IsRevertEnabled
[JsonIgnore]
public bool IsRevertEnabled { get; set; }
属性值
IsWorking
行动项是否正在运行。
[ExcludeFromCodeCoverage]
[JsonIgnore]
public bool IsWorking { get; set; }
属性值
Progress
行动项运行进度。范围 0~100。未报告则为 null。
[ExcludeFromCodeCoverage]
[JsonIgnore]
public double? Progress { get; set; }
属性值
Settings
行动项设置。
[ExcludeFromCodeCoverage]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? Settings { get; set; }
属性值
方法
SetEndRunning()
将行动项设定为结束运行。 此方法由 ActionBase 自动调用。
public void SetEndRunning()
SetStartRunning()
将行动项设定为开始运行。 此方法由 ActionBase 自动调用。
public void SetStartRunning()