PrintQueueStream Class
A stream that represents a spooled print job in a print queue.
Assembly: System.Printing (in System.Printing.dll)
The PrintQueueStream type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | CanRead | Gets a value that indicates whether the stream supports reading. (Overrides Stream.CanRead.) |
![]() | CanSeek | Gets a value that indicates whether the stream supports seeking, which is moving the read/write position to a new position in the stream. (Overrides Stream.CanSeek.) |
![]() | CanTimeout | Gets a value that determines whether the current stream can time out. (Inherited from Stream.) |
![]() | CanWrite | Gets a value that indicates whether the stream supports writing. (Overrides Stream.CanWrite.) |
![]() | JobIdentifier | Gets the ID number of the print job. |
![]() | Length | Gets the length of the stream in bytes. (Overrides Stream.Length.) |
![]() | Position | Gets or sets the current read/write position in the stream. (Overrides Stream.Position.) |
![]() | ReadTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from Stream.) |
![]() | WriteTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from Stream.) |
| Name | Description | |
|---|---|---|
![]() | BeginRead | Begins an asynchronous read operation. (Inherited from Stream.) |
![]() | BeginWrite | Begins an asynchronous write operation. (Overrides Stream.BeginWrite(Byte[], Int32, Int32, AsyncCallback, Object).) |
![]() | Close | Closes the stream and releases any resources, such as sockets and file handles, that are associated with it. (Overrides Stream.Close().) |
![]() | CopyTo(Stream) | Reads the bytes from the current stream and writes them to the destination stream. (Inherited from Stream.) |
![]() | CopyTo(Stream, Int32) | Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size. (Inherited from Stream.) |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | CreateWaitHandle | Obsolete. Allocates a WaitHandle object. (Inherited from Stream.) |
![]() | Dispose() | Releases all resources used by the Stream. (Inherited from Stream.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources that are used by the PrintQueueStream and optionally releases the managed resources. (Overrides Stream.Dispose(Boolean).) |
![]() | EndRead | Waits for the pending asynchronous read to complete. (Inherited from Stream.) |
![]() | EndWrite | Ends an asynchronous write operation. (Overrides Stream.EndWrite(IAsyncResult).) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Enables a PrintQueueStream to attempt to free resources and perform other cleanup operations before the PrintQueueStream is reclaimed by garbage collection. (Overrides Object.Finalize().) |
![]() | Flush | Clears all the buffers for this stream and writes any buffered data to the underlying device. (Overrides Stream.Flush().) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HandlePackagingProgressEvent | Enables the PrintQueueStream to respond to the packaging progress by handling the PackagingProgressEvent. |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
![]() | ObjectInvariant | Infrastructure. Provides support for a Contract. (Inherited from Stream.) |
![]() | Read | Reads a sequence of bytes from the stream and advances the read/write position in the stream by the number of bytes that were read. (Overrides Stream.Read(Byte[], Int32, Int32).) |
![]() | ReadByte | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Inherited from Stream.) |
![]() | Seek | Sets the read/write position within the stream. (Overrides Stream.Seek(Int64, SeekOrigin).) |
![]() | SetLength | Sets the length of the stream. (Overrides Stream.SetLength(Int64).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Write | Writes a sequence of bytes to the stream and advances the read/write position in the stream by the number of bytes that are written. (Overrides Stream.Write(Byte[], Int32, Int32).) |
![]() | WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from Stream.) |
Use this class to write device specific information to a spool file that is not automatically included by the Microsoft Windows spooler. Of course, you need to know whether the spool file is Enhanced Metafile (EMF) or XML Paper Specification (XPS). If you prefer working with a Byte array, you can also use two of the overloads of the AddJob method and the JobStream property to write to the spool file.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
