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