RegexMatchTimeoutException.Pattern Property (System.Text.RegularExpressions) (original) (raw)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the regular expression pattern that was used in the matching operation when the time-out occurred.

public:
 property System::String ^ Pattern { System::String ^ get(); };
public string Pattern { get; }
member this.Pattern : string
Public ReadOnly Property Pattern As String

Property Value

The regular expression pattern.

Remarks

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

Applies to