Click or drag to resize

QueryHelperLoadQuery Method

Loads query

Namespace:  Dynamicweb.Indexing.Querying
Assembly:  Dynamicweb.Indexing (in Dynamicweb.Indexing.dll) Version: 5.0.2
Syntax
public static IQuery LoadQuery(
	this IQueryService queryService,
	string fileName,
	RepositoryFileFormat fileFormat
)

Parameters

queryService
Type: Dynamicweb.Indexing.QueryingIQueryService
Query service instance
fileName
Type: SystemString
Path to query file in file system
fileFormat
Type: Dynamicweb.Indexing.QueryingRepositoryFileFormat
Format of query

Return Value

Type: IQuery
Query instance

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also