DocumentLibraryVersion Interface

The DocumentLibraryVersion object represents a single saved version of a shared document that has versioning enabled and that is stored in a document library on the server.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

public interface DocumentLibraryVersion : _IMsoDispObj

Each DocumentLibraryVersion object is a member of the active document's DocumentLibraryVersions collection.

Each DocumentLibraryVersion object represents one saved version of the active document. When versioning is enabled, a new version is created on the server when the actions listed below occur; additional versions are not created each time the user saves changes to the open document.

  • Check In.

  • Save - A new version is created on the server when the user first saves the document after opening it. Additional changes saved while the document is open apply to the same version.

  • Restore.

  • Upload.

Use the Modified, ModifiedBy, and Comments properties to return information about a saved version of a shared document.

Use the Open method to open a previous version, or the Restore method to restore a previous version in place of the current version. Use the Delete method to delete a version.