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
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
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
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);
[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 对象。 相反,从流反序列化RegexMatchTimeoutException对象时,IFormatter.Deserialize该方法会调用该方法。

适用于

RegexMatchTimeoutException(String, Exception)

Source:
RegexMatchTimeoutException.cs
Source:
RegexMatchTimeoutException.cs
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。 然后,此值分配给 RegexMatchTimeoutException 对象的 Exception.InnerException 属性。

message 字符串分配给 Exception.Message 属性。 字符串应本地化为当前区域性。

适用于

RegexMatchTimeoutException(String, String, TimeSpan)

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

超时间隔。

注解

regexInputregexPatternmatchTimeout值分配给InputRegexMatchTimeoutException对象的 、Pattern属性和MatchTimeout属性。

适用于