Specifies the maximum number of evaluation attempts, before the Until(Func<(Of <(Boolean>)>)), or
Until(WaitHandle) operation fails.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)
Syntax
| C# |
|---|
public static IRetryOptions Repeat( int repeat ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Repeat ( _ repeat As Integer _ ) As IRetryOptions |
Parameters
- repeat
- Type: System..::.Int32
The maximum number of evaluation cycles, or zero or a negative value to specify an unlimited number of attempts.
Return Value
An instance to specify other options for the retry operation.
Remarks
If not specified, the condition will be evaluated an infinite number of times, or until some other stop criterion is reached.
Exceptions
| Exception | Condition |
|---|---|
| System..::.InvalidOperationException | Thrown if the options was called more than once. |
