SOLIDWORKS PDM Professional API Help Send Feedback
Rollback Method (IEdmEnumeratorVersion5)
See Also 
EPDM.Interop.epdm Namespace > IEdmEnumeratorVersion5 Interface : Rollback Method (IEdmEnumeratorVersion5)


lVersionNo
Version number to which to roll this file back (see Remarks)
Obsolete. Superseded by IEdmEnumeratorVersion6::Rollback2.

Syntax

Visual Basic 
Sub Rollback( _
   ByVal lVersionNo As System.Integer _
) 
C# 
void Rollback( 
   System.int lVersionNo
)
C++/CLI 
void Rollback( 
&   System.int lVersionNo
) 

Parameters

lVersionNo
Version number to which to roll this file back (see Remarks)

Remarks

This method destroys all versions after the version specified by lVersionNo. There is no undoing of the operation short of restoring a backup of the entire database and file archives.

After this method completes successfully, lVersionNo is the new latest version of the file.

Return codes:

  • S_OK: The method successfully executed.
  • E_EDM_INVALID_REVISION_NUMBER: The specified version number is out of bounds. 
  • E_EDM_PERMISSION_DENIED: The user lacks permission to delete files.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 5.2