Click or drag to resize

QueryHelperSaveQuery Method

Saves query

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

Parameters

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

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