PrintQueueStream 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 PrintQueueStream class.
Overloads
PrintQueueStream(PrintQueue, String) |
Initializes a new instance of the PrintQueueStream class for the specified print job that is hosted in the specified PrintQueue. |
PrintQueueStream(PrintQueue, String, Boolean) |
Initializes a new instance of the PrintQueueStream class for the specified print job that is hosted in the specified PrintQueue, with an indication of whether data in the PrintQueueStream should be committed when the stream is closed. |
PrintQueueStream(PrintQueue, String, Boolean, PrintTicket) |
Initializes a new instance of the PrintQueueStream class for the specified print job that is hosted in the specified PrintQueue, with the specified settings and an indication of whether data in the PrintQueueStream should be committed when the stream is closed. |
PrintQueueStream(PrintQueue, String)
Initializes a new instance of the PrintQueueStream class for the specified print job that is hosted in the specified PrintQueue.
public:
PrintQueueStream(System::Printing::PrintQueue ^ printQueue, System::String ^ printJobName);
[System.Security.SecurityCritical]
public PrintQueueStream (System.Printing.PrintQueue printQueue, string printJobName);
public PrintQueueStream (System.Printing.PrintQueue printQueue, string printJobName);
[<System.Security.SecurityCritical>]
new System.Printing.PrintQueueStream : System.Printing.PrintQueue * string -> System.Printing.PrintQueueStream
new System.Printing.PrintQueueStream : System.Printing.PrintQueue * string -> System.Printing.PrintQueueStream
Public Sub New (printQueue As PrintQueue, printJobName As String)
Parameters
- printQueue
- PrintQueue
The PrintQueue that hosts the print job that provides the content of the stream.
- printJobName
- String
The name of the print job that provides the content of the stream.
- Attributes
Applies to
PrintQueueStream(PrintQueue, String, Boolean)
Initializes a new instance of the PrintQueueStream class for the specified print job that is hosted in the specified PrintQueue, with an indication of whether data in the PrintQueueStream should be committed when the stream is closed.
public:
PrintQueueStream(System::Printing::PrintQueue ^ printQueue, System::String ^ printJobName, bool commitDataOnClose);
[System.Security.SecurityCritical]
public PrintQueueStream (System.Printing.PrintQueue printQueue, string printJobName, bool commitDataOnClose);
public PrintQueueStream (System.Printing.PrintQueue printQueue, string printJobName, bool commitDataOnClose);
[<System.Security.SecurityCritical>]
new System.Printing.PrintQueueStream : System.Printing.PrintQueue * string * bool -> System.Printing.PrintQueueStream
new System.Printing.PrintQueueStream : System.Printing.PrintQueue * string * bool -> System.Printing.PrintQueueStream
Public Sub New (printQueue As PrintQueue, printJobName As String, commitDataOnClose As Boolean)
Parameters
- printQueue
- PrintQueue
The PrintQueue that hosts the print job that provides the content of the stream.
- printJobName
- String
The name of the print job that provides the content of the stream.
- commitDataOnClose
- Boolean
true
to commit data in the PrintQueueStream when the Close() method is called; otherwise, false
.
- Attributes
Applies to
PrintQueueStream(PrintQueue, String, Boolean, PrintTicket)
Initializes a new instance of the PrintQueueStream class for the specified print job that is hosted in the specified PrintQueue, with the specified settings and an indication of whether data in the PrintQueueStream should be committed when the stream is closed.
public:
PrintQueueStream(System::Printing::PrintQueue ^ printQueue, System::String ^ printJobName, bool commitDataOnClose, System::Printing::PrintTicket ^ printTicket);
[System.Security.SecurityCritical]
public PrintQueueStream (System.Printing.PrintQueue printQueue, string printJobName, bool commitDataOnClose, System.Printing.PrintTicket printTicket);
public PrintQueueStream (System.Printing.PrintQueue printQueue, string printJobName, bool commitDataOnClose, System.Printing.PrintTicket printTicket);
[<System.Security.SecurityCritical>]
new System.Printing.PrintQueueStream : System.Printing.PrintQueue * string * bool * System.Printing.PrintTicket -> System.Printing.PrintQueueStream
new System.Printing.PrintQueueStream : System.Printing.PrintQueue * string * bool * System.Printing.PrintTicket -> System.Printing.PrintQueueStream
Public Sub New (printQueue As PrintQueue, printJobName As String, commitDataOnClose As Boolean, printTicket As PrintTicket)
Parameters
- printQueue
- PrintQueue
The PrintQueue that hosts the print job that provides the content of the stream.
- printJobName
- String
The name of the print job that provides the content of the stream.
- commitDataOnClose
- Boolean
true
to commit data in the PrintQueueStream when the Close() method is called; otherwise, false
.
- printTicket
- PrintTicket
The settings of the print job.
- Attributes