Click or drag to resize

IItemContentGetReadStreamAsync Method (Int64, Int64)

IT Hit WebDAV Classes Reference
Loads part of the content of the file from WebDAV server.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 5.1.2712
Syntax
Task<Stream> GetReadStreamAsync(
	long startIndex,
	long count
)

Task<Stream> GetReadStreamAsync(
	long startIndex,
	long count
)

Parameters

startIndex
Type: SystemInt64
Start position to retrieve count number of bytes from.
count
Type: SystemInt64
Number of bytes to retrieve.

Return Value

Type: TaskStream
Stream to read resource content.
Exceptions
ExceptionCondition
NotFoundExceptionThis resource doesn't exist on the server.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.
FileContentModifiedExceptionContent was modified on server.
Remarks
If server supports If-Range header and last modification time do not match (the file content was modified) the library will throw FileContentModifiedException exception.
See Also