System.IO.Pipes.PipeStream Members

The members of System.IO.Pipes.PipeStream are listed below.

See Also: Inherited members from System.IO.Stream

Protected Constructors

Initializes a new instance of the System.IO.Pipes.PipeStream class using the specified System.IO.Pipes.PipeDirection value and buffer size.

Initializes a new instance of the System.IO.Pipes.PipeStream class using the specified System.IO.Pipes.PipeDirection, System.IO.Pipes.PipeTransmissionMode, and buffer size.

Public Properties

[read-only]
override
CanReadbool.

Gets a value indicating whether the current stream supports read operations.

[read-only]
override
CanSeekbool.

Gets a value indicating whether the current stream supports seek operations.

[read-only]
override
CanWritebool.

Gets a value indicating whether the current stream supports write operations.

[read-only]
InBufferSizeint.

Gets the size, in bytes, of the inbound buffer for a pipe.

[read-only]
IsAsyncbool.

Gets a value indicating whether a System.IO.Pipes.PipeStream object was opened asynchronously or synchronously.

IsConnectedbool.

Gets or sets a value indicating whether a System.IO.Pipes.PipeStream object is connected.

[read-only]
IsMessageCompletebool.

Gets a value indicating whether there is more data in the message returned from the most recent read operation.

[read-only]
override
Lengthlong.

Gets the length of a stream, in bytes.

[read-only]
OutBufferSizeint.

Gets the size, in bytes, of the outbound buffer for a pipe.

override
Positionlong.

Gets or sets the current position of the current stream.

ReadModePipeTransmissionMode.

Gets or sets the reading mode for a System.IO.Pipes.PipeStream object.

[read-only]
SafePipeHandleMicrosoft.Win32.SafeHandles.SafePipeHandle.

Gets the safe handle for the local end of the pipe that the current System.IO.Pipes.PipeStream object encapsulates.

[read-only]
TransmissionModePipeTransmissionMode.

Gets the pipe transmission mode supported by the current pipe.

Protected Properties

[read-only]
IsHandleExposedbool.

Gets a value indicating whether a handle to a System.IO.Pipes.PipeStream object is exposed.

Public Methods

override
BeginRead(byte[], int, int, AsyncCallback, object) : IAsyncResult

Begins an asynchronous read operation.

override
BeginWrite(byte[], int, int, AsyncCallback, object) : IAsyncResult

Begins an asynchronous write operation.

override
EndRead(IAsyncResult) : int

Ends a pending asynchronous read request.

override
EndWrite(IAsyncResult)

Ends a pending asynchronous write request.

override
Flush()

Clears the buffer for the current stream and causes any buffered data to be written to the underlying device.

GetAccessControl() : PipeSecurity

Gets a System.IO.Pipes.PipeSecurity object that encapsulates the access control list (ACL) entries for the pipe described by the current System.IO.Pipes.PipeStream object.

override
Read(byte[], int, int) : int

Reads a block of bytes from a stream and writes the data to a specified buffer.

override
ReadByte() : int

Reads a byte from a pipe.

override
Seek(long, System.IO.SeekOrigin) : long

Sets the current position of the current stream to the specified value.

SetAccessControl(PipeSecurity)

Applies the access control list (ACL) entries specified by a System.IO.Pipes.PipeSecurity object to the pipe specified by the current System.IO.Pipes.PipeStream object.

override
SetLength(long)

Sets the length of the current stream to the specified value.

WaitForPipeDrain()

Waits for the other end of the pipe to read all sent bytes.

override
Write(byte[], int, int)

Writes a block of bytes to the current stream using data from a buffer.

override
WriteByte(byte)

Writes a byte to the current stream.

Protected Methods

CheckPipePropertyOperations()

Verifies that the pipe is in a proper state for getting or setting properties.

CheckReadOperations()

Verifies that the pipe is in a connected state for read operations.

CheckWriteOperations()

Verifies that the pipe is in a connected state for write operations.

override
Dispose(bool)

Releases the unmanaged resources used by the System.IO.Pipes.PipeStream class and optionally releases the managed resources.

InitializeHandle(Microsoft.Win32.SafeHandles.SafePipeHandle, bool, bool)

Initializes a System.IO.Pipes.PipeStream object from the specified Microsoft.Win32.SafeHandles.SafePipeHandle object.