CommentRegex Constructor (TimeSpan)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the CommentRegex class with the specified time-out value.

Namespace:   System.Web.RegularExpressions
Assembly:  System.Web.RegularExpressions (in System.Web.RegularExpressions.dll)

public CommentRegex(
	TimeSpan A_1


Type: System.TimeSpan

A time-out interval, or Regex.InfiniteMatchTimeout if matching operations should not time out.

The A_1 parameter represents the maximum time interval during which the regular expression engine tries to find a match before the operation times out and a RegexMatchTimeoutException exception is thrown.

.NET Framework
Available since 4.5
Return to top