QueryTransform.QueryTemplate property
Gets/sets a template to apply to the original query text to produce a new query. For example, "{SearchTerms} filextension:docx" where {SearchTerms} variable represent the original query text The query template is applied before applying TransformExpression
Namespace: Microsoft.Office.Server.Search.Query.Rules
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Property QueryTemplate As String
Get
Set
'Usage
Dim instance As QueryTransform
Dim value As String
value = instance.QueryTemplate
instance.QueryTemplate = value
public string QueryTemplate { get; set; }
Property value
Type: System.String
Exceptions
Exception | Condition |
---|---|
NotSupportedException | Thrown when the QueryTransform object is read only |