InterfaceIDocumentRepository<TDocument>
Interface
Provides a unified interface for managing documents of a specific type. Implementations can support single-document or multi-document scenarios.
Definition
Namespace:Telerik.Documents.AI.Tools.Core
Assembly:Telerik.Documents.AI.Tools.Core.dll
Type Parameters:
TDocument
The type of document managed by this repository.
Syntax:
cs-api-definition
public interface IDocumentRepository<TDocument> : IDocumentRepository
Derived Classes:
Inherited Members
Methods
GetDocument(string)
Gets a document by its identifier.
Declaration
cs-api-definition
TDocument GetDocument(string documentId = null)
Parameters
documentId
The document identifier. If null, returns the default/current document. In single-document mode, this parameter is ignored.
Returns
TDocument
The requested document instance.
Exceptions
Thrown when the specified document ID does not exist.
Thrown when no documents are available and documentId is null.