C# Class System.Net.WebFileStream

Inheritance: System.IO.FileStream
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
Abort ( ) : void
CheckAborted ( ) : void

Method Details

BeginRead() public méthode

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

BeginWrite() public méthode

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

CopyToAsync() public méthode

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

Dispose() protected méthode

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

EndRead() public méthode

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

EndWrite() public méthode

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

Read() public méthode

public Read ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size 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

WebFileStream() public méthode

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

WebFileStream() public méthode

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
Résultat System.IO

Write() public méthode

public Write ( byte buffer, int offset, int size ) : void
buffer byte
offset int
size 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