DefaultDocumentLoaderCacheDocument Method |
Stores a document in the cache.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax public override Document CacheDocument(
Document document,
bool replace
)
Public Overrides Function CacheDocument (
document As Document,
replace As Boolean
) As Document
public:
virtual Document^ CacheDocument(
Document^ document,
bool replace
) override
abstract CacheDocument :
document : Document *
replace : bool -> Document
override CacheDocument :
document : Document *
replace : bool -> Document
Parameters
- document Document
- The document to store in the cache.
- replace Boolean
- True to replace any existing document with the same URI, false otherwise.
Return Value
DocumentThe cached document, which may be different from
document if
replace is
false.
Remarks
A cached document must have an absolute
URI.
See Also