Skip to content

Get

Returns a document instance from the repository if found; otherwise, returns null.

$Documents.Get(id: string):( Document | "null" )

Parameters

string id
    The ID of the document.

Remarks

The ID must be a GUID. A syntactically valid ID that is not found returns null; an invalid ID raises a script error.

See Also