Regex.DefaultMatchTimeout Property
Definition
Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll
Source: Regex.cs
DefaultMatchTimeout()
Gets the match timeout of every instance made without one of its own: the REGEX_DEFAULT_MATCH_TIMEOUT data of the AppContext, which System.Text.RegularExpressions reads too, as a TimeSpan, or InfiniteMatchTimeout when it is not set. It is read once, when it is first needed, so a program sets it when it starts (with AppContext.SetData, or AppDomain.CurrentDomain.SetData on .NET Framework, or in its runtimeconfig.json).
public static TimeSpan DefaultMatchTimeout { get; }
Returns
Exceptions
| Exception | Description |
|---|---|
InvalidCastException |
The data is not a TimeSpan. |
ArgumentOutOfRangeException |
The data is not a valid match timeout. |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue