RegexMatchTimeoutException.Input Property

.NET Framework (current version)
 
System_CAPS_noteNote

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

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 {
	[PermissionSetAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
	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).

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: