DirectiveRegex 构造函数

定义

初始化 DirectiveRegex 类的新实例。Initializes a new instance of the DirectiveRegex class.

重载

DirectiveRegex()

此 API 支持产品基础结构,不能在代码中直接使用。

初始化 DirectiveRegex 类的新实例。Initializes a new instance of the DirectiveRegex class.

DirectiveRegex(TimeSpan)

此 API 支持产品基础结构,不能在代码中直接使用。

用指定的超时值初始化 DirectiveRegex 类的新实例。Initializes a new instance of the DirectiveRegex class with a specified time-out value.

DirectiveRegex()

初始化 DirectiveRegex 类的新实例。Initializes a new instance of the DirectiveRegex class.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 DirectiveRegex();
public DirectiveRegex ();
Public Sub New ()

注解

此构造函数实例化已编译的正则表达式,其预定义的正则表达式模式如下所示: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*?%>

适用于

DirectiveRegex(TimeSpan)

用指定的超时值初始化 DirectiveRegex 类的新实例。Initializes a new instance of the DirectiveRegex class with a specified time-out value.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 DirectiveRegex(TimeSpan A_1);
public DirectiveRegex (TimeSpan A_1);
new System.Web.RegularExpressions.DirectiveRegex : TimeSpan -> System.Web.RegularExpressions.DirectiveRegex
Public Sub New (A_1 As TimeSpan)

参数

A_1
TimeSpan

如果匹配操作不应超时,则为超时间隔或 InfiniteMatchTimeoutA time-out interval, or InfiniteMatchTimeout if matching operations should not time out.

注解

A_1参数表示最大时间间隔,在此时间间隔内正则表达式引擎在操作超时和引发表达式之前尝试找到匹配项 RegexMatchTimeoutExceptionThe 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.

适用于