通过


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

LoadTestingModelFactory.RecurrenceWithCron(RecurrenceEnd, String) Method

Definition

Recurrence is set based on cron expression.

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

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.

cronExpression
String

Cron expression for the recurrence.

Returns

A new RecurrenceWithCron instance for mocking.

Applies to