RegexRunner.Scan Method (Regex, String, Int32, Int32, Int32, Int32, Boolean, TimeSpan)

.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.

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

Used by a Regex object generated by the CompileToAssembly method.

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

protected internal Match Scan(
	Regex regex,
	string text,
	int textbeg,
	int textend,
	int textstart,
	int prevlen,
	bool quick,
	TimeSpan timeout
)

Parameters

regex
Type: System.Text.RegularExpressions.Regex

An instance of the regular expression engine.

text
Type: System.String

The text to scan for a pattern match.

textbeg
Type: System.Int32

The zero-based starting position in text at which the regular expression engine scans for a match.

textend
Type: System.Int32

The zero-based ending position in text at which the regular expression engine scans for a match.

textstart
Type: System.Int32

The zero-based starting position to scan for this match.

prevlen
Type: System.Int32

The number of characters in the previous match.

quick
Type: System.Boolean

true to search for a match in quick mode; otherwise, false.

timeout
Type: System.TimeSpan

The timeout interval.

Return Value

Type: System.Text.RegularExpressions.Match

A match.

.NET Framework
Available since 4.5
Return to top
Show: