usmanazizgroupdocs
10/13/2016 - 5:20 PM

GetIndexingProgressPercentage.vb

' For complete examples and data files, please go to https://github.com/groupdocs-search/GroupDocs.Search-for-.NET
' Create index
Dim index As New Index(Utilities.indexPath, True)

AddHandler index.OperationProgressChanged, AddressOf index_OperationProgressChanged
' event subscribing
' all files from folder and its subfolders will be added to the index
index.AddToIndex(Utilities.documentsPath)

--------------------------------------------------------------

Private Shared Sub index_OperationProgressChanged(sender As Object, e As GroupDocs.Search.Events.OperationProgressArg)
      Console.WriteLine("Current progress: {0}" & vbLf & "{1}", e.ProgressPercentage, e.Message)
      ' event argument contains information about the current progress of operation
End Sub