<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
Rollback3 Method (IEdmEnumeratorVersion7)
See Also

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace > IEdmEnumeratorVersion7 Interface : Rollback3 Method (IEdmEnumeratorVersion7)

Visual Basic
C#
C++/CLI

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

bsComment
  Comment for the rollback

vbRedirectParentRefs
  True to roll back the file with parent references, false to roll back the file without parent references

Rolls this file back to the specified version.

# Syntax

Visual Basic |
--- | ---

    Sub Rollback3( _
       ByVal lVersionNo As System.Integer, _
       ByVal bsComment As System.String, _
       ByVal vbRedirectParentRefs As System.Boolean _
    )

C# |
--- | ---

    void Rollback3(
       System.int lVersionNo,
       System.string bsComment,
       System.bool vbRedirectParentRefs
    )

C++/CLI |
--- | ---

    void Rollback3(
    &   System.int lVersionNo,
    &   System.String^ bsComment,
    &   System.bool vbRedirectParentRefs
    )

#### Parameters

lVersionNo
  Version number to which to roll this file back (see Remarks)
bsComment
  Comment for the rollback
vbRedirectParentRefs
  True to roll back the file with parent references, false to roll back the file without parent references

# 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

####

IEdmEnumeratorVersion7 Interface
IEdmEnumeratorVersion7 Members
IEdmRevision7::Rollback3 Method ()
IEdmVersion8::Rollback3 Method ()

# Availability

SOLIDWORKS PDM Professional 2017