C# 클래스 Microsoft.SqlServer.TDS.EndPoint.PlaceholderStream

A simple pass-through implementation of stream that allows dynamically switching the underlying stream
상속: Stream
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Close() 공개 메소드

Close the stream
public Close ( ) : void
리턴 void

Flush() 공개 메소드

Flush the data into the underlying stream
public Flush ( ) : void
리턴 void

PlaceholderStream() 공개 메소드

Initialization constructor
public PlaceholderStream ( Stream innerStream ) : System
innerStream Stream
리턴 System

PlaceholderStream() 공개 메소드

Initialization constructor
public PlaceholderStream ( Stream innerStream, bool leaveInnerStreamOpen ) : System
innerStream Stream
leaveInnerStreamOpen bool
리턴 System

Read() 공개 메소드

Read the data from the stream
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

ReadAsync() 공개 메소드

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
리턴 Task

Seek() 공개 메소드

Seek position in the stream
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

Set stream length
public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

Write data into the stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void

WriteAsync() 공개 메소드

public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
리턴 Task