RegexMatchTimeoutException コンストラクター

定義

RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

オーバーロード

RegexMatchTimeoutException()

システム提供のメッセージを使用して、RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

RegexMatchTimeoutException(String)

指定したメッセージの文字列を使用して、RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

RegexMatchTimeoutException(SerializationInfo, StreamingContext)
古い.

シリアル化したデータを使用して、RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

RegexMatchTimeoutException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

RegexMatchTimeoutException(String, String, TimeSpan)

正規表現パターン、入力テキスト、およびタイムアウト間隔に関する情報を使用して、RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

RegexMatchTimeoutException()

Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs

システム提供のメッセージを使用して、RegexMatchTimeoutException クラスの新しいインスタンスを初期化します。

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

注釈

これは、 クラスの RegexMatchTimeoutException パラメーターなしのコンストラクターです。 このコンストラクターは、新しいインスタンスの Message プロパティを、エラーを説明するシステム提供のメッセージに初期化します。 このメッセージは、現在のシステム カルチャ用にローカライズされています。

適用対象

RegexMatchTimeoutException(String)

Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs
Source:
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 プロパティに Exception.Message 割り当てられます。 文字列は、現在のカルチャにローカライズする必要があります。

適用対象

RegexMatchTimeoutException(SerializationInfo, StreamingContext)

Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs
Source:
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);
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);
new System.Text.RegularExpressions.RegexMatchTimeoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Text.RegularExpressions.RegexMatchTimeoutException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

シリアル化されたデータを格納するオブジェクト。

context
StreamingContext

シリアル化されたデータを格納するストリーム。

属性

注釈

このコンストラクターは、オブジェクトをインスタンス化 RegexMatchTimeoutException するためにコードによって直接呼び出されません。 代わりに、ストリームからオブジェクトを IFormatter.Deserialize 逆シリアル化するときに、 RegexMatchTimeoutException メソッドによって呼び出されます。

適用対象

RegexMatchTimeoutException(String, Exception)

Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs
Source:
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 使用します。 パラメーターは innerException 、 ブロックで処理される例外オブジェクトへの参照である catch 必要があります。または、 を指定 nullできます。 この値は、オブジェクトException.InnerExceptionの プロパティにRegexMatchTimeoutException割り当てられます。

文字列は message プロパティに Exception.Message 割り当てられます。 文字列は、現在のカルチャにローカライズする必要があります。

適用対象

RegexMatchTimeoutException(String, String, TimeSpan)

Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs
Source:
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

タイムアウト間隔。

注釈

regexPattern、および matchTimeoutregexInput値は、新しいRegexMatchTimeoutExceptionオブジェクトの InputPattern、および MatchTimeout プロパティに割り当てられます。

適用対象