通过


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

LoadTestingModelFactory.LoadTestingRecurrence(String, RecurrenceEnd) Method

Definition

Recurrence model. Please note this is the abstract base class. The derived classes available for instantiation are: DailyRecurrence, HourlyRecurrence, MonthlyRecurrenceByWeekDays, MonthlyRecurrenceByDates, RecurrenceWithCron, and WeeklyRecurrence.

public static Azure.Developer.LoadTesting.LoadTestingRecurrence LoadTestingRecurrence(string frequency = default, Azure.Developer.LoadTesting.RecurrenceEnd recurrenceEnd = default);
static member LoadTestingRecurrence : string * Azure.Developer.LoadTesting.RecurrenceEnd -> Azure.Developer.LoadTesting.LoadTestingRecurrence
Public Shared Function LoadTestingRecurrence (Optional frequency As String = Nothing, Optional recurrenceEnd As RecurrenceEnd = Nothing) As LoadTestingRecurrence

Parameters

frequency
String

Frequency of the recurrence.

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.

Returns

A new LoadTestingRecurrence instance for mocking.

Applies to