Editare

Partajați prin


PrintCommitAttributesException Constructors

Definition

Initializes a new instance of the PrintCommitAttributesException class.

Overloads

PrintCommitAttributesException()

Initializes a new instance of the PrintCommitAttributesException class.

PrintCommitAttributesException(String)

Initializes a new instance of the PrintCommitAttributesException class and provides it with the specified message.

PrintCommitAttributesException(SerializationInfo, StreamingContext)

Initializes a new instance of the PrintCommitAttributesException class by using the specified SerializationInfo and StreamingContext.

PrintCommitAttributesException(String, Exception)

Initializes a new instance of the PrintCommitAttributesException class by using the specified message and the inner Exception.

PrintCommitAttributesException(Int32, Collection<String>, Collection<String>)

Initializes a new instance of the PrintCommitAttributesException class by using the specified error code, and the success and failure collections.

PrintCommitAttributesException(Int32, String, Collection<String>, Collection<String>, String)

Initializes a new instance of the PrintCommitAttributesException class by using the specified error code, message, and object name, and the success and failure collections.

PrintCommitAttributesException()

Initializes a new instance of the PrintCommitAttributesException class.

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

Applies to

PrintCommitAttributesException(String)

Initializes a new instance of the PrintCommitAttributesException class and provides it with the specified message.

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

Parameters

message
String

A description of the error condition.

Applies to

PrintCommitAttributesException(SerializationInfo, StreamingContext)

Initializes a new instance of the PrintCommitAttributesException class by using the specified SerializationInfo and StreamingContext.

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

Parameters

info
SerializationInfo

Stores all the data that is used to serialize the object.

context
StreamingContext

Describes the context of the serialized stream, including the source and the destination.

Applies to

PrintCommitAttributesException(String, Exception)

Initializes a new instance of the PrintCommitAttributesException class by using the specified message and the inner Exception.

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

Parameters

message
String

A description of the error condition.

innerException
Exception

The underlying condition that triggered the PrintCommitAttributesException.

Applies to

PrintCommitAttributesException(Int32, Collection<String>, Collection<String>)

Initializes a new instance of the PrintCommitAttributesException class by using the specified error code, and the success and failure collections.

public:
 PrintCommitAttributesException(int errorCode, System::Collections::ObjectModel::Collection<System::String ^> ^ attributesSuccessList, System::Collections::ObjectModel::Collection<System::String ^> ^ attributesFailList);
public PrintCommitAttributesException (int errorCode, System.Collections.ObjectModel.Collection<string> attributesSuccessList, System.Collections.ObjectModel.Collection<string> attributesFailList);
new System.Printing.PrintCommitAttributesException : int * System.Collections.ObjectModel.Collection<string> * System.Collections.ObjectModel.Collection<string> -> System.Printing.PrintCommitAttributesException
Public Sub New (errorCode As Integer, attributesSuccessList As Collection(Of String), attributesFailList As Collection(Of String))

Parameters

errorCode
Int32

An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.

attributesSuccessList
Collection<String>

A collection of strings that name the attributes that your program successfully committed.

attributesFailList
Collection<String>

A collection of strings that name the attributes that your program was unable to commit.

Applies to

PrintCommitAttributesException(Int32, String, Collection<String>, Collection<String>, String)

Initializes a new instance of the PrintCommitAttributesException class by using the specified error code, message, and object name, and the success and failure collections.

public:
 PrintCommitAttributesException(int errorCode, System::String ^ message, System::Collections::ObjectModel::Collection<System::String ^> ^ attributesSuccessList, System::Collections::ObjectModel::Collection<System::String ^> ^ attributesFailList, System::String ^ objectName);
public PrintCommitAttributesException (int errorCode, string message, System.Collections.ObjectModel.Collection<string> attributesSuccessList, System.Collections.ObjectModel.Collection<string> attributesFailList, string objectName);
new System.Printing.PrintCommitAttributesException : int * string * System.Collections.ObjectModel.Collection<string> * System.Collections.ObjectModel.Collection<string> * string -> System.Printing.PrintCommitAttributesException
Public Sub New (errorCode As Integer, message As String, attributesSuccessList As Collection(Of String), attributesFailList As Collection(Of String), objectName As String)

Parameters

errorCode
Int32

An Int32 that is interpreted as an HRESULT, a coded numerical value that is assigned to a specific exception.

message
String

A description of the error condition.

attributesSuccessList
Collection<String>

A collection of strings that name the attributes that your program successfully committed.

attributesFailList
Collection<String>

A collection of strings that name the attributes that your program was unable to commit.

objectName
String

The object that generated the exception.

Applies to