Table of Contents

ActionItem 类

命名空间
ClassIsland.Shared.Models.Automation
程序集
ClassIsland.Shared.dll

代表一个行动项。

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

属性

Exception

行动项错误。无则为 null。

[ExcludeFromCodeCoverage]
[JsonIgnore]
public string? Exception { get; set; }

属性值

string

Id

行动项 ID。

[ExcludeFromCodeCoverage]
public string Id { get; set; }

属性值

string

IsCompleted

行动已执行完成

[ExcludeFromCodeCoverage]
public bool IsCompleted { get; set; }

属性值

bool

IsRevertActionItem

[JsonIgnore]
public bool IsRevertActionItem { get; set; }

属性值

bool

IsRevertEnabled

[JsonIgnore]
public bool IsRevertEnabled { get; set; }

属性值

bool

IsWorking

行动项是否正在运行。

[ExcludeFromCodeCoverage]
[JsonIgnore]
public bool IsWorking { get; set; }

属性值

bool

Progress

行动项运行进度。范围 0~100。未报告则为 null。

[ExcludeFromCodeCoverage]
[JsonIgnore]
public double? Progress { get; set; }

属性值

double?

Settings

行动项设置。

[ExcludeFromCodeCoverage]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? Settings { get; set; }

属性值

object

方法

SetEndRunning()

将行动项设定为结束运行。 此方法由 ActionBase 自动调用。

public void SetEndRunning()

SetStartRunning()

将行动项设定为开始运行。 此方法由 ActionBase 自动调用。

public void SetStartRunning()

请参阅