語言

RegexMatchTimeoutException 建構函式

定義

初始化 RegexMatchTimeoutException 類別的新執行個體。

多載

名稱 Description
RegexMatchTimeoutException()

以系統提供的訊息初始化該 RegexMatchTimeoutException 類別的新實例。

RegexMatchTimeoutException(String)

初始化一個包含指定訊息字串的新 RegexMatchTimeoutException 類別實例。

RegexMatchTimeoutException(SerializationInfo, StreamingContext)
已淘汰.

初始化一個新的類別實例 RegexMatchTimeoutException ,並使用序列化資料。

RegexMatchTimeoutException(String, Exception)

初始化類別的新實例 RegexMatchTimeoutException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。

RegexMatchTimeoutException(String, String, TimeSpan)

初始化類別的新實例 RegexMatchTimeoutException ,包含正則表達式模式、輸入文字及逾時區間資訊。

RegexMatchTimeoutException()

來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs

以系統提供的訊息初始化該 RegexMatchTimeoutException 類別的新實例。

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

備註

此建構器將新實例的屬性初始 Message 化為系統提供的訊息,描述錯誤。 此訊息是針對當前系統文化在地化的。

適用於

RegexMatchTimeoutException(String)

來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs

初始化一個包含指定訊息字串的新 RegexMatchTimeoutException 類別實例。

public:
 RegexMatchTimeoutException(System::String ^ message);
public RegexMatchTimeoutException(string message);
new System.Text.RegularExpressions.RegexMatchTimeoutException : string -> System.Text.RegularExpressions.RegexMatchTimeoutException
Public Sub New (message As String)

參數

message
String

一個描述例外的字串。

備註

該 message 字串被指派給該 Message 屬性。 字串應該針對當前文化進行局部化。

適用於

RegexMatchTimeoutException(SerializationInfo, StreamingContext)

來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs

警告

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

初始化一個新的類別實例 RegexMatchTimeoutException ,並使用序列化資料。

protected:
 RegexMatchTimeoutException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected RegexMatchTimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected RegexMatchTimeoutException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Text.RegularExpressions.RegexMatchTimeoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.RegularExpressions.RegexMatchTimeoutException
new System.Text.RegularExpressions.RegexMatchTimeoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.RegularExpressions.RegexMatchTimeoutException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

包含序列化資料的物件。

context
StreamingContext

包含序列化資料的串流。

屬性

備註

這個建構子不會被你的程式碼直接呼叫來實例化物件 RegexMatchTimeoutException 。 相反地,當將物件從串流中反序列化IFormatter.Deserialize時,方法RegexMatchTimeoutException會呼叫它。

適用於

RegexMatchTimeoutException(String, Exception)

來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs

初始化類別的新實例 RegexMatchTimeoutException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。

public:
 RegexMatchTimeoutException(System::String ^ message, Exception ^ inner);
public RegexMatchTimeoutException(string message, Exception inner);
new System.Text.RegularExpressions.RegexMatchTimeoutException : string * Exception -> System.Text.RegularExpressions.RegexMatchTimeoutException
Public Sub New (message As String, inner As Exception)

參數

message
String

一個描述例外的字串。

inner
Exception

該例外即為當前例外的原因。

備註

通常,你會用這種超載來處理區塊中的 try/catch 異常。 inner參數應為區塊中處理catch的例外物件的參考,或是 null。 這個價值隨後被賦予該 InnerException 財產。

該 message 字串被指派給該 Message 屬性。 字串應該針對當前文化進行局部化。

適用於

RegexMatchTimeoutException(String, String, TimeSpan)

來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs
來源:
RegexMatchTimeoutException.cs

初始化類別的新實例 RegexMatchTimeoutException ,包含正則表達式模式、輸入文字及逾時區間資訊。

public:
 RegexMatchTimeoutException(System::String ^ regexInput, System::String ^ regexPattern, TimeSpan matchTimeout);
public RegexMatchTimeoutException(string regexInput, string regexPattern, TimeSpan matchTimeout);
new System.Text.RegularExpressions.RegexMatchTimeoutException : string * string * TimeSpan -> System.Text.RegularExpressions.RegexMatchTimeoutException
Public Sub New (regexInput As String, regexPattern As String, matchTimeout As TimeSpan)

參數

regexInput
String

當逾時發生時,正規表達式引擎會處理輸入文字。

regexPattern
String

這是正則表達式引擎在逾時時所使用的模式。

matchTimeout
TimeSpan

暫停時間。

備註

、 regexInputregexPattern、 和 matchTimeout 值被指派給Input新Pattern物件的 、 MatchTimeout、 RegexMatchTimeoutException 及屬性。

適用於