Initializes a new instance of the Exception class with serialized data.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected SearchPatternException( SerializationInfo info, StreamingContext context )
Protected Sub New ( _ info As SerializationInfo, _ context As StreamingContext _ )
protected: SearchPatternException( SerializationInfo^ info, StreamingContext context )
Parameters
- info (SerializationInfo)
- The SerializationInfo that holds the serialized object data about the exception being thrown.
- context (StreamingContext)
- The StreamingContext that contains contextual information about the source or destination.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The info parameter is null. |
SerializationException | The class name is null or HResult is zero (0). |
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238