編輯

共用方式為


DocumentLibraryVersion Interface

Definition

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.

public interface class DocumentLibraryVersion : Microsoft::Office::Core::_IMsoDispObj
[System.Runtime.InteropServices.Guid("000C0387-0000-0000-C000-000000000046")]
public interface DocumentLibraryVersion : Microsoft.Office.Core._IMsoDispObj
[<System.Runtime.InteropServices.Guid("000C0387-0000-0000-C000-000000000046")>]
type DocumentLibraryVersion = interface
    interface _IMsoDispObj
Public Interface DocumentLibraryVersion
Implements _IMsoDispObj
Attributes
Implements

Remarks

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.

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.

Properties

Application

Returns an Application object that represents the container application for the object.

Comments

Returns any optional comments associated with the specified version of the shared document.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Index

Returns an Integer representing the index number for an object in the collection.

Modified

Returns the date and time at which the specified version of the shared document was last saved to the server.

ModifiedBy

Returns the name of the user who last saved the specified version of the shared document to the server.

Parent

Returns the parent object for the specified object.

Methods

Delete()

Removes a document library version from the DocumentLibraryVersions collection.

Open()

Opens the specified version of the shared document from the DocumentLibraryVersions collection in read-only mode.

Restore()

Restores a previous saved version of a shared document from the DocumentLibraryVersions collection.

Applies to