DocumentLibraryVersion.Restore MethodÂ
Restores a previous saved version of a shared document from the DocumentLibraryVersions collection.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Usage
Dim returnValue As Object
Dim documentLibraryVersion1 As DocumentLibraryVersion
returnValue = documentLibraryVersion1.Restore()
Syntax
Function Restore() As Object
object Restore();
public: Object^ Restore();
public System.Object Restore();
function Restore() : Object;
Remarks
Use the Restore method to return to an earlier saved version of the active document. The Restore method does several things:
It changes the open version of the shared document to read-only mode but leaves it open.
It opens the restored version in read/write mode.
It saves the restored version to the server as a new document version, making the restored version the latest version.
The Restore method raises a run-time error if the active document has changes that have not been saved.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
DocumentLibraryVersion Interface
Microsoft.Office.Core Namespace