RegexMatchTimeoutException.Input 屬性

定義

取得當發生逾時,規則運算式引擎所處理的輸入文字。

public:
 property System::String ^ Input { System::String ^ get(); };
public string Input { get; }
member this.Input : string
Public ReadOnly Property Input As String

屬性值

規則運算式輸入文字。

備註

這個屬性會反映建構函式之 參數 RegexMatchTimeoutException(String, String, TimeSpan) 的值 regexInput 。 如果未在建構函式呼叫中明確初始化此參數,其值為 String.Empty

當正則運算式引擎擲回例外狀況時, Input 屬性值會反映傳遞至正則運算式引擎的整個輸入字串。 它不會反映部分字串,例如引擎在呼叫 中搜尋的方法子字串,例如 Regex.Match(String, Int32)

適用於