Solid Edge Revision Manager Object Library
GetFilePropertiesFromServer Method
Specifies the number of files to query.
Specifies the URL locations of files to query.
Specifies the number of properties to query.
Specifies the properties to query.
Specifies the number of property values.
Specifies the property values.
Description
This method retrieves the specified properties for the specified files from the server.
Syntax
Visual Basic
Public Function GetFilePropertiesFromServer( _
   ByVal NumberOfFilesToBeQueriedForProperties As Long, _
   ByVal FileUrlsList As Variant, _
   ByVal NumberOfPropertiesTobeQueried As Long, _
   ByVal PropertyUrisList As Variant, _
   ByRef numberOfPropertiesValues As Long, _
   ByRef PropertyValueList As Variant _
) As Long
Parameters
NumberOfFilesToBeQueriedForProperties
Specifies the number of files to query.
FileUrlsList
Specifies the URL locations of files to query.
NumberOfPropertiesTobeQueried
Specifies the number of properties to query.
PropertyUrisList
Specifies the properties to query.
numberOfPropertiesValues
Specifies the number of property values.
PropertyValueList
Specifies the property values.
Example
Imports RevisionManager
Imports System.Runtime.InteropServices

Module Example

    Sub Main()
        Dim objApplication As RevisionManager.Application = Nothing
        Dim objInsight As RevisionManager.Insight = Nothing
        Dim aPropValues As Object = Nothing
        Dim aListOfPropsToQuery(2) As Object
        Dim numberofpropertyvalues As Long
        Dim aFilesOnServer(0) As Object

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

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

            aFilesOnServer(0) = "http://solidvm/Engineering/PreReleased/PreReleasedDocLib/Dash.par"
            aListOfPropsToQuery(0) = "Description"
            aListOfPropsToQuery(1) = "Title"
            aListOfPropsToQuery(2) = "SEStatus"

            Call objInsight.GetFilePropertiesFromServer(aFilesOnServer.Length, aFilesOnServer, aListOfPropsToQuery.Length, aListOfPropsToQuery, numberofpropertyvalues, aPropValues)

        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.