Click or drag to resize
DocumentQueryBaseTQuery, TObjectLatestVersion Method
Ensures that only latest versions of the documents are retrieved (the retrieved version itself can also be the published version).

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public virtual TQuery LatestVersion(
	bool latest = true
)

Parameters

latest (Optional)
Type: SystemBoolean
If set to false, the method has the same behavior as the PublishedVersion(Boolean) method.

Return Value

Type: TQuery

Implements

IDocumentQueryTQuery, TObjectLatestVersion(Boolean)
See Also