Condividi tramite


LoadTestingModelFactory.MonthlyRecurrenceByWeekDays Method

Definition

Recurrence model when frequency is set as MonthlyByDays .

public static Azure.Developer.LoadTesting.MonthlyRecurrenceByWeekDays MonthlyRecurrenceByWeekDays(Azure.Developer.LoadTesting.RecurrenceEnd recurrenceEnd = default, System.Collections.Generic.IEnumerable<Azure.Developer.LoadTesting.WeekDays> weekDaysInMonth = default, int index = 0, int interval = 0);
static member MonthlyRecurrenceByWeekDays : Azure.Developer.LoadTesting.RecurrenceEnd * seq<Azure.Developer.LoadTesting.WeekDays> * int * int -> Azure.Developer.LoadTesting.MonthlyRecurrenceByWeekDays
Public Shared Function MonthlyRecurrenceByWeekDays (Optional recurrenceEnd As RecurrenceEnd = Nothing, Optional weekDaysInMonth As IEnumerable(Of WeekDays) = Nothing, Optional index As Integer = 0, Optional interval As Integer = 0) As MonthlyRecurrenceByWeekDays

Parameters

recurrenceEnd
RecurrenceEnd

Recurrence end model. You can specify the end either by providing a numberOfOccurrences (which will end the recurrence after the specified number of occurrences) or by providing an endDateTime (which will end the recurrence after the specified date). If neither value is provided, the recurrence will continue until it is manually ended. However, if both values are provided, an error will be thrown.

weekDaysInMonth
IEnumerable<WeekDays>

Specific days of the week when the recurrence should repeat.

index
Int32

Index of the week in a month at which the recurrence should repeat. For example, if the index is '2', weekDay is 'Monday', interval is 3 and frequency is 'Month', the recurrence will run every second Monday of the month and repeat every 3 months. Value of index can be 1 to 5.

interval
Int32

The interval at which the recurrence should repeat. It signifies the number of months between each recurrence.

Returns

A new MonthlyRecurrenceByWeekDays instance for mocking.

Applies to