RegexMatchTimeoutException RegexMatchTimeoutException RegexMatchTimeoutException RegexMatchTimeoutException Constructors

Definition

Overloads

RegexMatchTimeoutException() RegexMatchTimeoutException() RegexMatchTimeoutException()

Initializes a new instance of the RegexMatchTimeoutException class with a system-supplied message.

RegexMatchTimeoutException(String) RegexMatchTimeoutException(String) RegexMatchTimeoutException(String) RegexMatchTimeoutException(String)

Initializes a new instance of the RegexMatchTimeoutException class with the specified message string.

RegexMatchTimeoutException(SerializationInfo, StreamingContext) RegexMatchTimeoutException(SerializationInfo, StreamingContext) RegexMatchTimeoutException(SerializationInfo, StreamingContext) RegexMatchTimeoutException(SerializationInfo, StreamingContext)

Initializes a new instance of the RegexMatchTimeoutException class with serialized data.

RegexMatchTimeoutException(String, Exception) RegexMatchTimeoutException(String, Exception) RegexMatchTimeoutException(String, Exception) RegexMatchTimeoutException(String, Exception)

Initializes a new instance of the RegexMatchTimeoutException class with a specified error message and a reference to the inner exception that is the cause of this exception.

RegexMatchTimeoutException(String, String, TimeSpan) RegexMatchTimeoutException(String, String, TimeSpan) RegexMatchTimeoutException(String, String, TimeSpan) RegexMatchTimeoutException(String, String, TimeSpan)

Initializes a new instance of the RegexMatchTimeoutException class with information about the regular expression pattern, the input text, and the time-out interval.

RegexMatchTimeoutException() RegexMatchTimeoutException() RegexMatchTimeoutException()

Initializes a new instance of the RegexMatchTimeoutException class with a system-supplied message.

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

Remarks

This is the parameterless constructor of the RegexMatchTimeoutException class. This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. This message is localized for the current system culture.

RegexMatchTimeoutException(String) RegexMatchTimeoutException(String) RegexMatchTimeoutException(String) RegexMatchTimeoutException(String)

Initializes a new instance of the RegexMatchTimeoutException class with the specified message string.

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)

Parameters

message
String String String String

A string that describes the exception.

Remarks

The message string is assigned to the Exception.Message property. The string should be localized for the current culture.

RegexMatchTimeoutException(SerializationInfo, StreamingContext) RegexMatchTimeoutException(SerializationInfo, StreamingContext) RegexMatchTimeoutException(SerializationInfo, StreamingContext) RegexMatchTimeoutException(SerializationInfo, StreamingContext)

Initializes a new instance of the RegexMatchTimeoutException class with serialized data.

protected:
 RegexMatchTimeoutException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

The object that contains the serialized data.

context
StreamingContext StreamingContext StreamingContext StreamingContext

The stream that contains the serialized data.

Remarks

This constructor is not called directly by your code to instantiate the RegexMatchTimeoutException object. Instead, it is called by the IFormatter.Deserialize method when deserializing the RegexMatchTimeoutException object from a stream.

RegexMatchTimeoutException(String, Exception) RegexMatchTimeoutException(String, Exception) RegexMatchTimeoutException(String, Exception) RegexMatchTimeoutException(String, Exception)

Initializes a new instance of the RegexMatchTimeoutException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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)

Parameters

message
String String String String

A string that describes the exception.

inner
Exception Exception Exception Exception

The exception that is the cause of the current exception.

Remarks

Typically, you use this overload to handle an exception in a try/catch block. The innerException parameter should be a reference to the exception object handled in the catch block, or it can be null. This value is then assigned to the RegexMatchTimeoutException object's Exception.InnerException property.

The message string is assigned to the Exception.Message property. The string should be localized for the current culture.

RegexMatchTimeoutException(String, String, TimeSpan) RegexMatchTimeoutException(String, String, TimeSpan) RegexMatchTimeoutException(String, String, TimeSpan) RegexMatchTimeoutException(String, String, TimeSpan)

Initializes a new instance of the RegexMatchTimeoutException class with information about the regular expression pattern, the input text, and the time-out interval.

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)

Parameters

regexInput
String String String String

The input text processed by the regular expression engine when the time-out occurred.

regexPattern
String String String String

The pattern used by the regular expression engine when the time-out occurred.

matchTimeout
TimeSpan TimeSpan TimeSpan TimeSpan

The time-out interval.

Remarks

The regexInput, regexPattern, and matchTimeout values are assigned to the Input, Pattern, and MatchTimeout properties of the new RegexMatchTimeoutException object.

Applies to