RegexMatchTimeoutException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy RegexMatchTimeoutException.

Przeciążenia

RegexMatchTimeoutException()

Inicjuje RegexMatchTimeoutException nowe wystąpienie klasy z komunikatem dostarczonym przez system.

RegexMatchTimeoutException(String)

Inicjuje RegexMatchTimeoutException nowe wystąpienie klasy z określonym ciągiem komunikatu.

RegexMatchTimeoutException(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie klasy RegexMatchTimeoutException z zserializowanymi danymi.

RegexMatchTimeoutException(String, Exception)

Inicjuje nowe wystąpienie RegexMatchTimeoutException klasy z określonym komunikatem o błędzie i odwołaniem do wewnętrznego wyjątku, który jest przyczyną tego wyjątku.

RegexMatchTimeoutException(String, String, TimeSpan)

Inicjuje nowe wystąpienie klasy z informacjami na temat wzorca wyrażenia regularnego RegexMatchTimeoutException , tekstu wejściowego i interwału limitu czasu.

RegexMatchTimeoutException()

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

Inicjuje RegexMatchTimeoutException nowe wystąpienie klasy z komunikatem dostarczonym przez system.

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

Uwagi

Jest to konstruktor bez parametrów RegexMatchTimeoutException klasy. Ten konstruktor inicjuje Message właściwość nowego wystąpienia do komunikatu dostarczonego przez system, który opisuje błąd. Ten komunikat jest zlokalizowany dla bieżącej kultury systemu.

Dotyczy

RegexMatchTimeoutException(String)

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

Inicjuje RegexMatchTimeoutException nowe wystąpienie klasy z określonym ciągiem komunikatu.

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)

Parametry

message
String

Ciąg opisujący wyjątek.

Uwagi

Ciąg message jest przypisywany do Exception.Message właściwości. Ciąg powinien być zlokalizowany dla bieżącej kultury.

Dotyczy

RegexMatchTimeoutException(SerializationInfo, StreamingContext)

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

Przestroga

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

Inicjuje nowe wystąpienie klasy RegexMatchTimeoutException z zserializowanymi danymi.

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)

Parametry

info
SerializationInfo

Obiekt zawierający dane serializowane.

context
StreamingContext

Strumień zawierający dane serializowane.

Atrybuty

Uwagi

Ten konstruktor nie jest wywoływany bezpośrednio przez kod w celu utworzenia RegexMatchTimeoutException wystąpienia obiektu. Zamiast tego jest wywoływana przez metodę IFormatter.Deserialize podczas deserializacji RegexMatchTimeoutException obiektu ze strumienia.

Dotyczy

RegexMatchTimeoutException(String, Exception)

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

Inicjuje nowe wystąpienie RegexMatchTimeoutException klasy z określonym komunikatem o błędzie i odwołaniem do wewnętrznego wyjątku, który jest przyczyną tego wyjątku.

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)

Parametry

message
String

Ciąg opisujący wyjątek.

inner
Exception

Wyjątek będący przyczyną bieżącego wyjątku.

Uwagi

Zazwyczaj to przeciążenie jest używane do obsługi wyjątku try/catch w bloku. Parametr innerException powinien być odwołaniem do obiektu wyjątku obsługiwanego catch w bloku lub może to być null. Ta wartość jest następnie przypisywana Exception.InnerException do RegexMatchTimeoutException właściwości obiektu.

Ciąg message jest przypisywany do Exception.Message właściwości. Ciąg powinien być zlokalizowany dla bieżącej kultury.

Dotyczy

RegexMatchTimeoutException(String, String, TimeSpan)

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

Inicjuje nowe wystąpienie klasy z informacjami na temat wzorca wyrażenia regularnego RegexMatchTimeoutException , tekstu wejściowego i interwału limitu czasu.

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)

Parametry

regexInput
String

Tekst wejściowy przetwarzany przez aparat wyrażeń regularnych, gdy wystąpił limit czasu.

regexPattern
String

Wzorzec używany przez aparat wyrażeń regularnych, gdy wystąpił limit czasu.

matchTimeout
TimeSpan

Interwał limitu czasu.

Uwagi

Wartości regexInput, regexPatterni matchTimeout są przypisywane do Inputwłaściwości , Patterni MatchTimeout nowego RegexMatchTimeoutException obiektu.

Dotyczy