RegexMatchTimeoutException.Pattern 属性

定义

获取超时发生时用于匹配操作的正则表达式模式。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

属性值

String

正则表达式模式。The regular expression pattern.

注解

此属性反映 regexPattern 构造函数的参数的值 RegexMatchTimeoutException(String, String, TimeSpan)This property reflects the value of the regexPattern parameter of the RegexMatchTimeoutException(String, String, TimeSpan) constructor. 如果未在构造函数调用中正确初始化参数,则其值为 String.EmptyIf the parameter is not properly initialized in a constructor call, its value is String.Empty.

适用于