CachePackageReaderAddPartToCache Method Document Toolkit Help
Adds specified part to the cache.

Namespace: FirstFloor.Documents.IO.Caching
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.11.0)
Syntax

protected internal abstract void AddPartToCache(
	Uri partUri,
	Stream stream
)

Parameters

partUri
Type: SystemUri
The part URI.
stream
Type: System.IOStream
The stream.
Remarks

A null value for the stream parameter is allowed. It prevents duplicate requests for non-existing parts.

Do not close or dispose the part stream for it is re-used. There's not need to reposition the stream, that is handled by Document Toolkit.

See Also

Reference