The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Regex Constructor (SerializationInfo^, StreamingContext)
.NET Framework (current version)
Initializes a new instance of the Regex class by using serialized data.
Assembly: System (in System.dll)
Parameters
- info
-
Type:
System.Runtime.Serialization::SerializationInfo^
The object that contains a serialized pattern and RegexOptions information.
- context
-
Type:
System.Runtime.Serialization::StreamingContext
The destination for this serialization. (This parameter is not used; specify null.)
| Exception | Condition |
|---|---|
| ArgumentException | A regular expression parsing error occurred. |
| ArgumentNullException | The pattern that info contains is null. |
| ArgumentOutOfRangeException | info contains an invalid RegexOptions flag. |
.NET Framework
Available since 2.0
Available since 2.0
Show: