ChaosExperimentBranch Constructor

Definition

Initializes a new instance of ChaosExperimentBranch.

public ChaosExperimentBranch (string name, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Chaos.Models.ChaosExperimentAction> actions);
new Azure.ResourceManager.Chaos.Models.ChaosExperimentBranch : string * seq<Azure.ResourceManager.Chaos.Models.ChaosExperimentAction> -> Azure.ResourceManager.Chaos.Models.ChaosExperimentBranch
Public Sub New (name As String, actions As IEnumerable(Of ChaosExperimentAction))

Parameters

name
String

String of the branch name.

actions
IEnumerable<ChaosExperimentAction>

List of actions. Please note ChaosExperimentAction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ChaosContinuousAction, ChaosDelayAction and ChaosDiscreteAction.

Exceptions

name or actions is null.

Applies to