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
public delegate Task AsyncDocumentLoadCallback(
	ValueRef<DocumentInfo> info,
	Stream contents


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

Return Value

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