Solid Edge Revision Manager Object Library
CheckSupport Method
Specifies the server to query.
Specifies whether SharePoint Server is supported. This is true if the current versions of Solid Edge and SharePoint are compatible. Otherwise, a message dialog displays "SharePoint Version 2 must be used with this version of Solid Edge".
Description
This method checks for SharePoint Server support on the specified server.
Syntax
Visual Basic
Public Function CheckSupport( _
   ByVal ServerUrl As String, _
   ByRef bSPSIsSupported As Boolean _
) As Long
Parameters
ServerUrl
Specifies the server to query.
bSPSIsSupported
Specifies whether SharePoint Server is supported. This is true if the current versions of Solid Edge and SharePoint are compatible. Otherwise, a message dialog displays "SharePoint Version 2 must be used with this version of Solid Edge".
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

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

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

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

            ServerFileUrl = "D:\InsightCache\Insight\solidvm\Engineering\PreReleased\PreReleasedDocLib\Summit.par"

            ' Check if the current versions of solid edge and sharepoint are compatible.
            objInsight.CheckSupport(ServerFileUrl, bIsSpssupported)

            If (bIsSpssupported) Then
                ' File is supported.
            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.