Solid Edge Revision Manager Object Library
FolderExists Method
Specifies the folder.
Specifies whether the folder exists.
Description
This read-only method returns whether the specified folder exists.
Syntax
Visual Basic
Public Function FolderExists( _
   ByVal bstrFolderName As String, _
   ByRef bFolderExists As Boolean _
) As Long
Parameters
bstrFolderName
Specifies the folder.
bFolderExists
Specifies whether the folder exists.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim FolderUrl As String
        Dim bFolderExists As Boolean

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

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

            FolderUrl = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Summit"

            objInsight.FolderExists(FolderUrl, bFolderExists)

            If (bFolderExists) Then
                ' Folder exists.
            End If

        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.