C# Class System.Net.WebFileStream

Inheritance: System.IO.FileStream
Mostra file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
EndRead ( IAsyncResult ar ) : int
EndWrite ( IAsyncResult ar ) : void
Read ( byte buffer, int offset, int size ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WebFileStream ( FileWebRequest request, string path, FileMode mode, FileAccess access, FileShare sharing ) : System.IO
WebFileStream ( FileWebRequest request, string path, FileMode mode, FileAccess access, FileShare sharing, int length, bool async ) : System.IO
Write ( byte buffer, int offset, int size ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
Abort ( ) : void
CheckAborted ( ) : void

Method Details

BeginRead() public method

public BeginRead ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state object
return IAsyncResult

BeginWrite() public method

public BeginWrite ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state object
return IAsyncResult

CopyToAsync() public method

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination System.IO.Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
return Task

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndRead() public method

public EndRead ( IAsyncResult ar ) : int
ar IAsyncResult
return int

EndWrite() public method

public EndWrite ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Read() public method

public Read ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
return int

ReadAsync() public method

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

WebFileStream() public method

public WebFileStream ( FileWebRequest request, string path, FileMode mode, FileAccess access, FileShare sharing ) : System.IO
request FileWebRequest
path string
mode FileMode
access FileAccess
sharing FileShare
return System.IO

WebFileStream() public method

public WebFileStream ( FileWebRequest request, string path, FileMode mode, FileAccess access, FileShare sharing, int length, bool async ) : System.IO
request FileWebRequest
path string
mode FileMode
access FileAccess
sharing FileShare
length int
async bool
return System.IO

Write() public method

public Write ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size int
return void

WriteAsync() public method

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