XpsSerializationException Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the XpsSerializationException class.
XpsSerializationException() |
Initializes a new instance of the XpsSerializationException class. |
XpsSerializationException(String) |
Initializes a new instance of the XpsSerializationException class that provides a specific error condition. |
XpsSerializationException(SerializationInfo, StreamingContext) |
Initializes a new instance of the XpsSerializationException class that provides specific SerializationInfo and StreamingContext. This constructor is protected. |
XpsSerializationException(String, Exception) |
Initializes a new instance of the XpsSerializationException class that provides a specific error condition and includes the cause of the exception. |
Initializes a new instance of the XpsSerializationException class.
public:
XpsSerializationException();
public XpsSerializationException();
Public Sub New ()
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Initializes a new instance of the XpsSerializationException class that provides a specific error condition.
public:
XpsSerializationException(System::String ^ message);
public XpsSerializationException(string message);
new System.Windows.Xps.XpsSerializationException : string -> System.Windows.Xps.XpsSerializationException
Public Sub New (message As String)
Parameters
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Initializes a new instance of the XpsSerializationException class that provides specific SerializationInfo and StreamingContext. This constructor is protected.
protected:
XpsSerializationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XpsSerializationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Xps.XpsSerializationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Xps.XpsSerializationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The data that is required to serialize or deserialize an object.
- context
- StreamingContext
The context, which includes the source and destination, of the serialized stream.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Initializes a new instance of the XpsSerializationException class that provides a specific error condition and includes the cause of the exception.
public:
XpsSerializationException(System::String ^ message, Exception ^ innerException);
public XpsSerializationException(string message, Exception innerException);
new System.Windows.Xps.XpsSerializationException : string * Exception -> System.Windows.Xps.XpsSerializationException
Public Sub New (message As String, innerException As Exception)
Parameters
- innerException
- Exception
The underlying error that caused the exception.
Remarks
If the innerException
parameter is not null
(Nothing
in Visual Basic), the current exception is raised in a catch
block that handles the inner exception.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: