你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChaosSchedule 构造函数

定义

初始化 ChaosSchedule 类的新实例。

public ChaosSchedule (DateTime startDate, DateTime expiryDate, System.Collections.Generic.Dictionary<string,System.Fabric.Chaos.DataStructures.ChaosParameters> chaosParametersDictionary, System.Collections.Generic.List<System.Fabric.Chaos.DataStructures.ChaosScheduleJob> jobs);
new System.Fabric.Chaos.DataStructures.ChaosSchedule : DateTime * DateTime * System.Collections.Generic.Dictionary<string, System.Fabric.Chaos.DataStructures.ChaosParameters> * System.Collections.Generic.List<System.Fabric.Chaos.DataStructures.ChaosScheduleJob> -> System.Fabric.Chaos.DataStructures.ChaosSchedule
Public Sub New (startDate As DateTime, expiryDate As DateTime, chaosParametersDictionary As Dictionary(Of String, ChaosParameters), jobs As List(Of ChaosScheduleJob))

参数

startDate
DateTime

开始使用此计划自动执行 Chaos 运行的日期和时间。

expiryDate
DateTime

停止使用此计划自动执行 Chaos 运行的日期和时间。

chaosParametersDictionary
Dictionary<String,ChaosParameters>

ChaosParameters 到作业中引用的 ChaosScheduleJob 字符串名称的映射。

jobs
List<ChaosScheduleJob>

ChaosScheduleJob描述何时运行混沌测试的列表。

适用于