Click or drag to resize

AsyncDocumentLoadCallback Delegate

Represents a method to be called asynchronously when a document is loaded.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
Syntax
public delegate Task AsyncDocumentLoadCallback(
	ValueRef<DocumentInfo> info,
	Stream contents
)

Parameters

info  ValueRefDocumentInfo
A structure containing meta-information for the document.
contents  Stream
A stream that provides read access to the document.

Return Value

Task
A task that represents the method's asynchronous operation.
Remarks
The callback can modify the document meta-information by specifying or overriding any of its mutable properties.
See Also