Edit

Share via


DirectiveRegex Constructors

Definition

Initializes a new instance of the DirectiveRegex class.

Overloads

DirectiveRegex()

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

Initializes a new instance of the DirectiveRegex class.

DirectiveRegex(TimeSpan)

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

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

DirectiveRegex()

Initializes a new instance of the DirectiveRegex class.

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

C#
public DirectiveRegex();

Remarks

This constructor instantiates a compiled regular expression whose predefined regular expression pattern is the following:

\G<%\s*@(\s*(?<attrname>\w[\w:]*(?=\W))(\s*(?<equal>=)\s*"(?<attrval>[^"]*)"|\s*(?<equal>=)\s*'(?<attrval>[^']*)'|\s*(?<equal>=)\s*(?<attrval>[^\s%>]*)|(?<equal>)(?<attrval>\s*?)))*\s*?%>

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DirectiveRegex(TimeSpan)

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

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

C#
public DirectiveRegex(TimeSpan A_1);

Parameters

A_1
TimeSpan

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

Remarks

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 expression is thrown.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1