Język

XpsException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XpsException.

Przeciążenia

Nazwa Opis
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 wartości i StreamingContext. Ten konstruktor jest chroniony.

XpsException(String, Exception)

Inicjuje nowe wystąpienie XpsException klasy, które udostępnia określony warunek błędu i zawiera 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 wartości 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 zawiera źródło i miejsce docelowe serializowanego strumienia.

Dotyczy

XpsException(String, Exception)

Inicjuje nowe wystąpienie XpsException klasy, które udostępnia określony warunek błędu i zawiera 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

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

Dotyczy