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.1.0)

Syntax

C#
protected internal abstract void AddPartToCache(
	Uri partUri,
	Stream stream
)
Visual Basic
Protected Friend MustOverride Sub AddPartToCache ( _
	partUri As Uri, _
	stream As Stream _
)
Visual C++
protected public:
virtual void AddPartToCache(
	Uri^ partUri, 
	Stream^ stream
) abstract

Parameters

partUri
Type: System..::..Uri
The part URI.
stream
Type: System.IO..::..Stream
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