Tries to fetch the specified part from 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 override bool TryGetPartFromCache(
	Uri partUri,
	out Stream stream
)
Visual Basic
Protected Overrides Function TryGetPartFromCache ( _
	partUri As Uri, _
	<OutAttribute> ByRef stream As Stream _
) As Boolean
Visual C++
protected:
virtual bool TryGetPartFromCache(
	Uri^ partUri, 
	[OutAttribute] Stream^% stream
) override

Parameters

partUri
Type: System..::..Uri
The part URI.
stream
Type: System.IO..::..Stream%
The stream.

Return Value

A value indicating whether specified part was found in the cache.

Remarks

A new stream instance should be returned for every method call for the stream is disposed after usage.

See Also