Share via


DocumentLibraryVersions Interface 

The DocumentLibraryVersions object represents a collection of DocumentLibraryVersion objects.

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

Usage

Public Class ocumentLibraryVersionsImplementation
    Implements DocumentLibraryVersions
End Class
Dim ocumentLibraryVersionsImplementation1 As New ocumentLibraryVersionsImplementation()

Syntax

Public Interface DocumentLibraryVersions
    Inherits _IMsoDispObj, IEnumerable
public interface DocumentLibraryVersions : _IMsoDispObj, IEnumerable
public interface class DocumentLibraryVersions : public _IMsoDispObj, IEnumerable
public interface DocumentLibraryVersions implements _IMsoDispObj, IEnumerable
public interface DocumentLibraryVersions implements _IMsoDispObj, , IEnumerable

Remarks

The DocumentLibraryVersions property of the Microsoft Office Word 2003 Document, the Microsoft Office Excel 2003 Workbook, and the Microsoft Office PowerPoint 2003 Presentation objects returns a DocumentLibraryVersions object.

Use the DocumentLibraryVersions object with documents stored in a Windows SharePoint Services document library on the server to determine whether versioning is enabled for the active document and, if versioning is enabled, to manage the document's collection of DocumentLibraryVersion objects.

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.

The DocumentLibraryVersions object model is available whether versioning is enabled or disabled on the active document. The DocumentLibraryVersions property of the Document, Workbook, and Presentation objects does not return Nothing when the active document is not stored in a document library or versioning is not enabled. Use the IsVersioningEnabled property to determine whether the document library is configured to save a backup copy, or version, each time the document is edited on the web site.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Core Namespace

Other Resources

DocumentLibraryVersions Members