Solid Edge Revision Manager Object Library
UndoCheckOutDocumentsFromServer Method
Specifies the number of documents for which to undo the checkout.
Specifies the URL paths of the documents for which to undo the checkout.
Description
This method undoes the most recent checkout for the documents you specify.
Syntax
Visual Basic
Public Function UndoCheckOutDocumentsFromServer( _
   ByVal NumberOfDocumentsToUndoCheckOutFromServer As Long, _
   ByVal ListOfDocumentsToUndoCheckOutFromServer As Variant _
) As Long
Parameters
NumberOfDocumentsToUndoCheckOutFromServer
Specifies the number of documents for which to undo the checkout.
ListOfDocumentsToUndoCheckOutFromServer
Specifies the URL paths of the documents for which to undo the checkout.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim aListOfDocuments(1) As Object

        Try
            ' Start Revision Manager.
            objApplication = New RevisionManager.Application

            ' Get reference to Insight object.
            objInsight = objApplication.Insight

            aListOfDocuments(0) = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit.par"
            aListOfDocuments(1) = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit-1.par"

            ' Checkout the documents first.
            objInsight.CheckOutDocumentsFromServer(aListOfDocuments.Length, aListOfDocuments)

            ' Now undo the checkout of the documents first.
            objInsight.UndoCheckOutDocumentsFromServer(aListOfDocuments.Length, aListOfDocuments)
        Catch ex As Exception
            ' Write any errors to console.
            Console.WriteLine(ex.Message)
        Finally
            ' Release COM Objects.
            If Not (objInsight Is Nothing) Then
                Marshal.ReleaseComObject(objInsight)
                objInsight = Nothing
            End If

            If Not (objApplication Is Nothing) Then
                objApplication.Quit()
                Marshal.ReleaseComObject(objApplication)
                objApplication = Nothing
            End If
        End Try
    End Sub

End Module
See Also

Insight Object  | Insight Members

Send comments on this topic.