RegexMatchTimeoutException.MatchTimeout 屬性

定義

取得規則運算式比對的逾時間隔。

public:
 property TimeSpan MatchTimeout { TimeSpan get(); };
public TimeSpan MatchTimeout { get; }
member this.MatchTimeout : TimeSpan
Public ReadOnly Property MatchTimeout As TimeSpan

屬性值

逾時間隔。

備註

這個屬性會反映建構函式之 參數 RegexMatchTimeoutException(String, String, TimeSpan) 的值 matchTimeout 。 如果參數未在建構函式呼叫中正確初始化,其值為 Timespan.FromTicks(-1)

這個屬性的值會反映呼叫建構函式或靜態方法中所設定的 Regex 逾時間隔。 它不會反映從方法呼叫開頭到擲回例外狀況的時間所經過的確切間隔。

適用於