LazyDocumentMetadataValue Class
Stores the ID of a document and attempts to lazily find it in the current input documents and their children when the value is requested.
Namespace
Statiq.Common
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IMetadataValue"] click Interface0 "/api/Statiq.Common/IMetadataValue" Type["LazyDocumentMetadataValue"] class Type type-node

Syntax

public class LazyDocumentMetadataValue : IMetadataValue

Remarks

This will descend child documents contained in the Children metadata. It will also return the first document result with a matching ID. That means if the original document this value points to was cloned, the first matching clone (of possibly many) will be returned by this metadata.

Constructors

Name Summary
LazyDocumentMetadataValue() Creates an instance without an ID. This is helpful in situations where you need to create a set of documents first and then go back and fill in the IDs after all the documents are created (I.e. next and previous).
LazyDocumentMetadataValue(IDocument)

Properties

Name Property Type Summary
OriginalDocument IDocument

Methods

Name Return Value Summary
Get(string, IMetadata) object

Extension Methods