MS Windream GetSearchDocuments DocIDIndexname Optional

This commit is contained in:
Developer01 2024-11-19 13:21:48 +01:00
parent 6b92832dce
commit daadc7771a
2 changed files with 6 additions and 3 deletions

View File

@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' übernehmen, indem Sie "*" eingeben: ' übernehmen, indem Sie "*" eingeben:
' <Assembly: AssemblyVersion("1.0.*")> ' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("1.9.4.0")> <Assembly: AssemblyVersion("1.9.5.0")>
<Assembly: AssemblyFileVersion("1.9.4.0")> <Assembly: AssemblyFileVersion("1.9.5.0")>

View File

@ -890,10 +890,13 @@ Public Class Windream
''' <param name="SearchFilePath">Path of a search file (*.wdf)</param> ''' <param name="SearchFilePath">Path of a search file (*.wdf)</param>
''' <param name="DocIdIndexName">Index containing the Document-ID</param> ''' <param name="DocIdIndexName">Index containing the Document-ID</param>
''' <returns>A datatable of the results with columns PATH and DOCID</returns> ''' <returns>A datatable of the results with columns PATH and DOCID</returns>
Public Function GetSearchDocuments(SearchFilePath As String, DocIdIndexName As String) As DataTable Public Function GetSearchDocuments(SearchFilePath As String, Optional DocIdIndexName As String = "") As DataTable
Dim oDatatable As New DataTable Dim oDatatable As New DataTable
oDatatable.Columns.Add("PATH", GetType(String)) oDatatable.Columns.Add("PATH", GetType(String))
oDatatable.Columns.Add("DOCID", GetType(Integer)) oDatatable.Columns.Add("DOCID", GetType(Integer))
If DocIdIndexName = "" Then
DocIdIndexName = "Dokument-ID"
End If
If TestSessionLoggedIn() = False Then If TestSessionLoggedIn() = False Then
Return oDatatable Return oDatatable