PrintServerException Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy PrintServerException.

Przeciążenia

PrintServerException()

Inicjuje nowe wystąpienie klasy PrintServerException.

PrintServerException(String)

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

PrintServerException(SerializationInfo, StreamingContext)

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

PrintServerException(String, Exception)

Inicjuje PrintServerException nowe wystąpienie klasy, które zapewnia określony warunek błędu, w tym podstawową przyczynę wyjątku.

PrintServerException(Int32, String, String)

Inicjuje PrintServerException nowe wystąpienie klasy, które udostępnia określony kod błędu, warunek błędu i nazwę serwera wydruku.

PrintServerException(Int32, String, String, Exception)

Inicjuje PrintServerException nowe wystąpienie klasy, które udostępnia określoną nazwę serwera wydruku, kod błędu i warunek błędu, w tym podstawową przyczynę wyjątku.

PrintServerException()

Inicjuje nowe wystąpienie klasy PrintServerException.

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

Dotyczy

PrintServerException(String)

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

public:
 PrintServerException(System::String ^ message);
public PrintServerException (string message);
new System.Printing.PrintServerException : string -> System.Printing.PrintServerException
Public Sub New (message As String)

Parametry

message
String

Element String opisujący warunek błędu.

Dotyczy

PrintServerException(SerializationInfo, StreamingContext)

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

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

Parametry

info
SerializationInfo

Dane wymagane do serializacji lub deserializacji obiektu.

context
StreamingContext

Kontekst, w tym źródło i miejsce docelowe serializowanego strumienia.

Dotyczy

PrintServerException(String, Exception)

Inicjuje PrintServerException nowe wystąpienie klasy, które zapewnia określony warunek błędu, w tym podstawową przyczynę wyjątku.

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

Parametry

message
String

Element String opisujący warunek błędu.

innerException
Exception

Podstawowy warunek błędu, który spowodował PrintServerExceptionbłąd .

Dotyczy

PrintServerException(Int32, String, String)

Inicjuje PrintServerException nowe wystąpienie klasy, które udostępnia określony kod błędu, warunek błędu i nazwę serwera wydruku.

public:
 PrintServerException(int errorCode, System::String ^ message, System::String ^ serverName);
public PrintServerException (int errorCode, string message, string serverName);
new System.Printing.PrintServerException : int * string * string -> System.Printing.PrintServerException
Public Sub New (errorCode As Integer, message As String, serverName As String)

Parametry

errorCode
Int32

Element Int32 , który jest interpretowany jako HRESULT, zakodowana wartość liczbowa przypisana do określonego wyjątku.

message
String

Element String opisujący warunek błędu.

serverName
String

Nazwa serwera wydruku, do którego uzyskiwano dostęp po wystąpieniu warunku błędu.

Dotyczy

PrintServerException(Int32, String, String, Exception)

Inicjuje PrintServerException nowe wystąpienie klasy, które udostępnia określoną nazwę serwera wydruku, kod błędu i warunek błędu, w tym podstawową przyczynę wyjątku.

public:
 PrintServerException(int errorCode, System::String ^ message, System::String ^ serverName, Exception ^ innerException);
public PrintServerException (int errorCode, string message, string serverName, Exception innerException);
new System.Printing.PrintServerException : int * string * string * Exception -> System.Printing.PrintServerException
Public Sub New (errorCode As Integer, message As String, serverName As String, innerException As Exception)

Parametry

errorCode
Int32

Element Int32 , który jest interpretowany jako HRESULT, zakodowana wartość liczbowa przypisana do określonego wyjątku.

message
String

Element String opisujący warunek błędu.

serverName
String

Nazwa serwera wydruku, do którego uzyskiwano dostęp po wystąpieniu warunku błędu.

innerException
Exception

Podstawowy warunek, który spowodował PrintServerExceptionbłąd .

Dotyczy