RegexMatchTimeoutException Oluşturucular

Tanım

RegexMatchTimeoutException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

RegexMatchTimeoutException()

Sistem tarafından sağlanan bir iletiyle sınıfının yeni bir örneğini RegexMatchTimeoutException başlatır.

RegexMatchTimeoutException(String)

Belirtilen ileti dizesiyle sınıfının yeni bir örneğini RegexMatchTimeoutException başlatır.

RegexMatchTimeoutException(SerializationInfo, StreamingContext)
Geçersiz.

RegexMatchTimeoutException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.

RegexMatchTimeoutException(String, Exception)

Sınıfın RegexMatchTimeoutException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

RegexMatchTimeoutException(String, String, TimeSpan)

Normal ifade deseni RegexMatchTimeoutException , giriş metni ve zaman aşımı aralığı hakkındaki bilgilerle sınıfının yeni bir örneğini başlatır.

RegexMatchTimeoutException()

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

Sistem tarafından sağlanan bir iletiyle sınıfının yeni bir örneğini RegexMatchTimeoutException başlatır.

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

Açıklamalar

Bu, sınıfının parametresiz oluşturucusdur RegexMatchTimeoutException . Bu oluşturucu, yeni örneğin özelliğini hatayı açıklayan sistem tarafından sağlanan bir iletiye başlatır Message . Bu ileti geçerli sistem kültürü için yerelleştirilmiştir.

Şunlara uygulanır

RegexMatchTimeoutException(String)

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

Belirtilen ileti dizesiyle sınıfının yeni bir örneğini RegexMatchTimeoutException başlatır.

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)

Parametreler

message
String

Özel durumu açıklayan bir dize.

Açıklamalar

Dize message özelliğine Exception.Message atanır. Dize geçerli kültür için yerelleştirilmelidir.

Şunlara uygulanır

RegexMatchTimeoutException(SerializationInfo, StreamingContext)

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

Dikkat

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

RegexMatchTimeoutException sınıfının yeni bir örneğini serileştirilmiş verilerle başlatır.

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)

Parametreler

info
SerializationInfo

Seri hale getirilmiş verileri içeren nesne.

context
StreamingContext

Seri hale getirilmiş verileri içeren akış.

Öznitelikler

Açıklamalar

Bu oluşturucu, nesnesinin RegexMatchTimeoutException örneğini oluşturmak için doğrudan kodunuz tarafından çağrılmıyor. Bunun yerine, bir akıştan nesne seri durumdan RegexMatchTimeoutException çıkarılırken yöntemi tarafından IFormatter.Deserialize çağrılır.

Şunlara uygulanır

RegexMatchTimeoutException(String, Exception)

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

Sınıfın RegexMatchTimeoutException yeni bir örneğini belirtilen bir hata iletisiyle ve bu özel durumun nedeni olan iç özel duruma başvuruyla başlatır.

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)

Parametreler

message
String

Özel durumu açıklayan bir dize.

inner
Exception

Geçerli özel durumun nedeni olan özel durum.

Açıklamalar

Genellikle, bir bloktaki try/catch bir özel durumu işlemek için bu aşırı yüklemeyi kullanırsınız. innerException parametresi, bloğunda işlenen özel durum nesnesine catch bir başvuru olmalıdır veya olabilirnull. Bu değer daha sonra nesnenin Exception.InnerException özelliğine RegexMatchTimeoutException atanır.

Dize message özelliğine Exception.Message atanır. Dize geçerli kültür için yerelleştirilmelidir.

Şunlara uygulanır

RegexMatchTimeoutException(String, String, TimeSpan)

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

Normal ifade deseni RegexMatchTimeoutException , giriş metni ve zaman aşımı aralığı hakkındaki bilgilerle sınıfının yeni bir örneğini başlatır.

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)

Parametreler

regexInput
String

Zaman aşımı oluştuğunda normal ifade altyapısı tarafından işlenen giriş metni.

regexPattern
String

Zaman aşımı oluştuğunda normal ifade altyapısı tarafından kullanılan desen.

matchTimeout
TimeSpan

Zaman aşımı aralığı.

Açıklamalar

regexInput, regexPatternve matchTimeout değerleri, yeni RegexMatchTimeoutException nesnenin Input, Patternve MatchTimeout özelliklerine atanır.

Şunlara uygulanır