Research.Query(String, String, WdLanguageID, Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies a research query.
public object Query (string ServiceID, string QueryString = "", Microsoft.Office.Interop.Word.WdLanguageID QueryLanguage = Microsoft.Office.Interop.Word.WdLanguageID.wdLanguageNone, bool UseSelection = false, bool LaunchQuery = false);
abstract member Query : string * string * Microsoft.Office.Interop.Word.WdLanguageID * bool * bool -> obj
Public Function Query (ServiceID As String, Optional QueryString As String = "", Optional QueryLanguage As WdLanguageID = Microsoft.Office.Interop.Word.WdLanguageID.wdLanguageNone, Optional UseSelection As Boolean = false, Optional LaunchQuery As Boolean = false) As Object
Parameters
- ServiceID
- String
Specifies a GUID that identifies the research service.
- QueryString
- String
Specifies the query string.
- QueryLanguage
- WdLanguageID
Specifies the query language of the query string.
- UseSelection
- Boolean
True to use the current selection as the query string. This overrides the QueryString
parameter if set. Default value is False.
- LaunchQuery
- Boolean
True launches the query. False displays the Research task pane scoped to search the specified research service.
Returns
Object