C# Class System.IO.Pipes.PipeStream

Inheritance: Stream
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
CheckReadWriteArgs void
DebugAssertReadWriteArgs void
GetPipePath string
GetSecAttrs Interop.Kernel32.SECURITY_ATTRIBUTES
Init void
InitializeAsyncHandle void
InitializeHandle void
ReadAsync Task
ReadAsyncCore Task
ReadCore int
ReadFileNative int
UninitializeAsyncHandle void
UpdateMessageCompletion void
UpdateReadMode void
ValidateHandleIsPipe void
WinIOError Exception
WriteAsync Task
WriteAsyncCore Task
WriteCore void
WriteFileNative int

Méthodes publiques

Méthode Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginRead ( byte buffer, int offset, int count, System callback, object state ) : System.IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, System callback, object state ) : System.IAsyncResult
EndRead ( IAsyncResult asyncResult ) : int
EndRead ( System asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
EndWrite ( System asyncResult ) : void
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
Seek ( long offset, System origin ) : long
SetLength ( long value ) : void
WaitForPipeDrain ( ) : void
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
WriteByte ( byte value ) : void

Méthodes protégées

Méthode Description
CheckPipePropertyOperations ( ) : void
CheckReadOperations ( ) : void
CheckWriteOperations ( ) : void
Dispose ( bool disposing ) : void
InitializeHandle ( Microsoft handle, bool isExposed, bool isAsync ) : void
PipeStream ( System direction, System transmissionMode, int outBufferSize )
PipeStream ( System direction, int bufferSize )
PipeStream ( PipeDirection direction, PipeTransmissionMode transmissionMode, int outBufferSize ) : Microsoft.Win32.SafeHandles
PipeStream ( PipeDirection direction, int bufferSize ) : Microsoft.Win32.SafeHandles

Private Methods

Méthode Description
CheckReadWriteArgs ( byte buffer, int offset, int count ) : void
DebugAssertReadWriteArgs ( byte buffer, int offset, int count, SafePipeHandle handle ) : void
GetPipePath ( string serverName, string pipeName ) : string
GetSecAttrs ( HandleInheritability inheritability ) : Interop.Kernel32.SECURITY_ATTRIBUTES
Init ( PipeDirection direction, PipeTransmissionMode transmissionMode, int outBufferSize ) : void
InitializeAsyncHandle ( SafePipeHandle handle ) : void

Initializes the handle to be used asynchronously.

InitializeHandle ( SafePipeHandle handle, bool isExposed, bool isAsync ) : void
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadAsyncCore ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadCore ( byte buffer, int offset, int count ) : int
ReadFileNative ( SafePipeHandle handle, byte buffer, int offset, int count, NativeOverlapped overlapped, int &errorCode ) : int
UninitializeAsyncHandle ( ) : void
UpdateMessageCompletion ( bool completion ) : void
UpdateReadMode ( ) : void
ValidateHandleIsPipe ( SafePipeHandle safePipeHandle ) : void

Throws an exception if the supplied handle does not represent a valid pipe.

WinIOError ( int errorCode ) : Exception
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteAsyncCore ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteCore ( byte buffer, int offset, int count ) : void
WriteFileNative ( SafePipeHandle handle, byte buffer, int offset, int count, NativeOverlapped overlapped, int &errorCode ) : int

Method Details

BeginRead() public méthode

public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

BeginRead() public méthode

public BeginRead ( byte buffer, int offset, int count, System callback, object state ) : System.IAsyncResult
buffer byte
offset int
count int
callback System
state object
Résultat System.IAsyncResult

BeginWrite() public méthode

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

BeginWrite() public méthode

public BeginWrite ( byte buffer, int offset, int count, System callback, object state ) : System.IAsyncResult
buffer byte
offset int
count int
callback System
state object
Résultat System.IAsyncResult

CheckPipePropertyOperations() protected méthode

protected CheckPipePropertyOperations ( ) : void
Résultat void

CheckReadOperations() protected méthode

protected CheckReadOperations ( ) : void
Résultat void

CheckWriteOperations() protected méthode

protected CheckWriteOperations ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndRead() public méthode

public EndRead ( System asyncResult ) : int
asyncResult System
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndWrite() public méthode

public EndWrite ( System asyncResult ) : void
asyncResult System
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

InitializeHandle() protected méthode

protected InitializeHandle ( Microsoft handle, bool isExposed, bool isAsync ) : void
handle Microsoft
isExposed bool
isAsync bool
Résultat void

PipeStream() protected méthode

protected PipeStream ( System direction, System transmissionMode, int outBufferSize )
direction System
transmissionMode System
outBufferSize int

PipeStream() protected méthode

protected PipeStream ( System direction, int bufferSize )
direction System
bufferSize int

PipeStream() protected méthode

protected PipeStream ( PipeDirection direction, PipeTransmissionMode transmissionMode, int outBufferSize ) : Microsoft.Win32.SafeHandles
direction PipeDirection
transmissionMode PipeTransmissionMode
outBufferSize int
Résultat Microsoft.Win32.SafeHandles

PipeStream() protected méthode

protected PipeStream ( PipeDirection direction, int bufferSize ) : Microsoft.Win32.SafeHandles
direction PipeDirection
bufferSize int
Résultat Microsoft.Win32.SafeHandles

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ReadAsync() public méthode

public ReadAsync ( byte buffer, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
buffer byte
offset int
count int
cancellationToken System
Résultat System.Threading.Tasks.Task

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

Seek() public méthode

public Seek ( long offset, System origin ) : long
offset long
origin System
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

WaitForPipeDrain() public méthode

public WaitForPipeDrain ( ) : void
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteAsync() public méthode

public WriteAsync ( byte buffer, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
buffer byte
offset int
count int
cancellationToken System
Résultat System.Threading.Tasks.Task

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void