通过


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

LoadTestingModelFactory.WeeklyRecurrence Method

Definition

Recurrence model when frequency is set as weekly.

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

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.

daysOfWeek
IEnumerable<WeekDays>

Recurrence set to repeat on the specified days of the week.

interval
Nullable<Int32>

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

Returns

A new WeeklyRecurrence instance for mocking.

Applies to