Skip to main content

Revisions: Counting Revisions

  • A document's revisions can be counted using the session.Advanced.Revisions.GetCountFor method.

  • In this page:

GetCountFor

long GetCountFor(string id);
ParameterTypeDescription
idstringID of the document whose revisions are counted
  • Return Value: long
    The number of revisions for this document

Usage Sample

Get the number of revisions created for a document:

var revisionsCount = session.Advanced.Revisions.GetCountFor(CompanyProfile.Id);