C# Class Microsoft.SqlServer.TDS.EndPoint.PlaceholderStream

A simple pass-through implementation of stream that allows dynamically switching the underlying stream
Inheritance: Stream
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void

Close the stream

Flush ( ) : void

Flush the data into the underlying stream

PlaceholderStream ( Stream innerStream ) : System

Initialization constructor

PlaceholderStream ( Stream innerStream, bool leaveInnerStreamOpen ) : System

Initialization constructor

Read ( byte buffer, int offset, int count ) : int

Read the data from the stream

ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
Seek ( long offset, SeekOrigin origin ) : long

Seek position in the stream

SetLength ( long value ) : void

Set stream length

Write ( byte buffer, int offset, int count ) : void

Write data into the stream

WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Method Details

Close() public méthode

Close the stream
public Close ( ) : void
Résultat void

Flush() public méthode

Flush the data into the underlying stream
public Flush ( ) : void
Résultat void

PlaceholderStream() public méthode

Initialization constructor
public PlaceholderStream ( Stream innerStream ) : System
innerStream Stream
Résultat System

PlaceholderStream() public méthode

Initialization constructor
public PlaceholderStream ( Stream innerStream, bool leaveInnerStreamOpen ) : System
innerStream Stream
leaveInnerStreamOpen bool
Résultat System

Read() public méthode

Read the data from the stream
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, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Résultat Task

Seek() public méthode

Seek position in the stream
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

Set stream length
public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

Write data into the stream
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, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Résultat Task