←Select platform

ActionQuery Property

Summary

Specifies the action-based query used to load Actions from the query context.

Syntax
C#
VB
C++
public RepositoryQuery ActionQuery { get; set; } 
Public Property ActionQuery() As RepositoryQuery 
   Get 
   Set 
public:  
   property RepositoryQuery^ ActionQuery 
   { 
      RepositoryQuery^ get() 
      void set(RepositoryQuery^ value) 
   } 

Property Value

Empty query, which indicates wildcard matching.

Remarks

Pass an empty query for wildcard matching. Pass a Null value to specify that a query is not to be performed.

Queries take place in the query context specified at DocumentAnalyzer.QueryContext.

Example

This example shows how to load and run analysis.

C#
using Leadtools; 
using Leadtools.Document.Analytics; 
using Leadtools.Document; 
using Leadtools.Document.Unstructured; 
using Leadtools.Document.Data; 
 
 
public void Sample() 
{ 
   using (var engines = UnstructuredOcrEngines.Defaults(@"D:\OcrLEADRuntime")) 
   { 
      var analyzer = new DocumentAnalyzer() 
      { 
         Reader = new UnstructuredDataReader() 
         { 
            OcrEngines = engines.Engines 
         }, 
         QueryContext = new FileRepositoryContext(@"D:\ruleset.json") 
      }; 
 
      var options = new DocumentAnalyzerRunOptions() 
      { 
         ElementQuery = new RepositoryQuery(), 
         ActionQuery = new RepositoryQuery() 
      }; 
 
      using (var document = DocumentFactory.LoadFromFile(@"c:\test.docx", new LoadDocumentOptions())) 
      { 
         var results = analyzer.Run(document, options); 
      } 
   } 
} 
Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Analytics Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.