XpsException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XpsException.

Przeciążenia

XpsException()

Inicjuje nowe wystąpienie klasy XpsException.

XpsException(String)

Inicjuje XpsException nowe wystąpienie klasy, które zapewnia określony warunek błędu.

XpsException(SerializationInfo, StreamingContext)

Inicjuje XpsException nowe wystąpienie klasy, która udostępnia określone SerializationInfo i StreamingContext. Ten konstruktor jest chroniony.

XpsException(String, Exception)

Inicjuje XpsException nowe wystąpienie klasy, które zapewnia określony warunek błędu i uwzględnia przyczynę wyjątku.

XpsException()

Inicjuje nowe wystąpienie klasy XpsException.

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

Dotyczy

XpsException(String)

Inicjuje XpsException nowe wystąpienie klasy, które zapewnia określony warunek błędu.

public:
 XpsException(System::String ^ message);
public XpsException (string message);
new System.Windows.Xps.XpsException : string -> System.Windows.Xps.XpsException
Public Sub New (message As String)

Parametry

message
String

Element String opisujący warunek błędu.

Dotyczy

XpsException(SerializationInfo, StreamingContext)

Inicjuje XpsException nowe wystąpienie klasy, która udostępnia określone SerializationInfo i StreamingContext. Ten konstruktor jest chroniony.

protected:
 XpsException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XpsException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Xps.XpsException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Xps.XpsException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parametry

info
SerializationInfo

Dane wymagane do serializacji lub deserializacji obiektu.

context
StreamingContext

Kontekst, który obejmuje źródło i miejsce docelowe strumienia serializowanego.

Dotyczy

XpsException(String, Exception)

Inicjuje XpsException nowe wystąpienie klasy, które zapewnia określony warunek błędu i uwzględnia przyczynę wyjątku.

public:
 XpsException(System::String ^ message, Exception ^ innerException);
public XpsException (string message, Exception innerException);
new System.Windows.Xps.XpsException : string * Exception -> System.Windows.Xps.XpsException
Public Sub New (message As String, innerException As Exception)

Parametry

message
String

Element String opisujący warunek błędu.

innerException
Exception

Podstawowy błąd, który spowodował XpsExceptionbłąd .

Uwagi

innerException Jeśli parametr nie null jest (Nothing w Visual Basic), bieżący wyjątek jest zgłaszany w catch bloku, który obsługuje wyjątek wewnętrzny.

Dotyczy