XpsPackagingException Constructors
Definition
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 XpsPackagingException class.
Overloads
XpsPackagingException() |
Initializes a new instance of the XpsPackagingException class. |
XpsPackagingException(String) |
Initializes a new instance of the XpsPackagingException class that provides a specific error condition. |
XpsPackagingException(SerializationInfo, StreamingContext) |
Initializes a new instance of the XpsPackagingException class that provides specific SerializationInfo and StreamingContext. This constructor is protected. |
XpsPackagingException(String, Exception) |
Initializes a new instance of the XpsPackagingException class that provides a specific error condition and includes the cause of the exception. |
XpsPackagingException()
Initializes a new instance of the XpsPackagingException class.
public:
XpsPackagingException();
public XpsPackagingException ();
Public Sub New ()
Applies to
XpsPackagingException(String)
Initializes a new instance of the XpsPackagingException class that provides a specific error condition.
public:
XpsPackagingException(System::String ^ message);
public XpsPackagingException (string message);
new System.Windows.Xps.XpsPackagingException : string -> System.Windows.Xps.XpsPackagingException
Public Sub New (message As String)
Parameters
Applies to
XpsPackagingException(SerializationInfo, StreamingContext)
Initializes a new instance of the XpsPackagingException class that provides specific SerializationInfo and StreamingContext. This constructor is protected.
protected:
XpsPackagingException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XpsPackagingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Xps.XpsPackagingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Xps.XpsPackagingException
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 source and destination, of the serialized stream.
Applies to
XpsPackagingException(String, Exception)
Initializes a new instance of the XpsPackagingException class that provides a specific error condition and includes the cause of the exception.
public:
XpsPackagingException(System::String ^ message, Exception ^ innerException);
public XpsPackagingException (string message, Exception innerException);
new System.Windows.Xps.XpsPackagingException : string * Exception -> System.Windows.Xps.XpsPackagingException
Public Sub New (message As String, innerException As Exception)
Parameters
- innerException
- Exception
The underlying error that caused the XpsPackagingException.
Remarks
If the innerException
parameter is not null
, the current exception is thrown in a catch
block that handles the inner exception.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin