Click or drag to resize

DefaultDocumentLoaderLoadDocumentAsync Method

Loads a document asynchronously.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
public override Task<Document> LoadDocumentAsync(
	DocumentSettings settings,
	DocumentInfo? sourceInfo,
	string specifier,
	DocumentCategory category,
	DocumentContextCallback contextCallback
)

Parameters

settings  DocumentSettings
Document access settings for the operation.
sourceInfo  NullableDocumentInfo
An optional structure containing meta-information for the requesting document.
specifier  String
A string specifying the document to be loaded.
category  DocumentCategory
An optional category for the requested document.
contextCallback  DocumentContextCallback
An optional context callback for the requested document.

Return Value

TaskDocument
A task that represents the asynchronous operation. Upon completion, the task's result is a Document instance that represents the loaded document.
Remarks
A loaded document must have an absolute URI. Once a load operation has completed successfully, subsequent requests that resolve to the same URI are expected to return the same Document reference, although loaders are not required to manage document caches of unlimited size.
See Also