CommentRegex 构造函数

定义

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

重载

CommentRegex()

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

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

CommentRegex(TimeSpan)

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

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

CommentRegex()

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

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

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

注解

此构造函数实例化已编译的正则表达式,其预定义的正则表达式模式为 \G<%--(([^-]*)-)*?-%>This constructor instantiates a compiled regular expression whose predefined regular expression pattern is \G<%--(([^-]*)-)*?-%>.

适用于

CommentRegex(TimeSpan)

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

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

public:
 CommentRegex(TimeSpan A_1);
public CommentRegex (TimeSpan A_1);
new System.Web.RegularExpressions.CommentRegex : TimeSpan -> System.Web.RegularExpressions.CommentRegex
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参数表示最大时间间隔,在此时间间隔内正则表达式引擎在操作超时之前尝试查找匹配项,并 RegexMatchTimeoutException 引发异常。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 exception is thrown.

适用于