次の方法で共有


ChaosExperimentData Constructor

Definition

Initializes a new instance of ChaosExperimentData.

public ChaosExperimentData (Azure.Core.AzureLocation location, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Chaos.Models.ChaosExperimentStep> steps, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Chaos.Models.ChaosTargetSelector> selectors);
new Azure.ResourceManager.Chaos.ChaosExperimentData : Azure.Core.AzureLocation * seq<Azure.ResourceManager.Chaos.Models.ChaosExperimentStep> * seq<Azure.ResourceManager.Chaos.Models.ChaosTargetSelector> -> Azure.ResourceManager.Chaos.ChaosExperimentData
Public Sub New (location As AzureLocation, steps As IEnumerable(Of ChaosExperimentStep), selectors As IEnumerable(Of ChaosTargetSelector))

Parameters

location
AzureLocation

The location.

steps
IEnumerable<ChaosExperimentStep>

List of steps.

selectors
IEnumerable<ChaosTargetSelector>

List of selectors. Please note ChaosTargetSelector 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 ChaosTargetListSelector and ChaosTargetQuerySelector.

Exceptions

steps or selectors is null.

Applies to