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

屬性值

規則運算式模式。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.

適用於