Export (0) Print
Expand All

RegexMatchTimeoutException.Input Property

.NET Framework 4.5

Gets the input text that the regular expression engine was processing when the time-out occurred.

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

public string Input { get; }

Property Value

Type: System.String
The regular expression input text.

This property reflects the value of the regexInput parameter of the RegexMatchTimeoutException(String, String, TimeSpan) constructor. If this parameter is not explicitly initialized in a constructor call, its value is String.Empty.

When the exception is thrown by the regular expression engine, the value of the Input property reflects the entire input string passed to the regular expression engine. It does not reflect a partial string, such as the substring that the engine searches in the call to a method such as Regex.Match(String, Int32).

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft