Research.Query(String, String, WdLanguageID, Boolean, Boolean) Research.Query(String, String, WdLanguageID, Boolean, Boolean) Method

Definition

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);
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 String

Specifies a GUID that identifies the research service.

QueryString
String String

Specifies the query string.

QueryLanguage
WdLanguageID WdLanguageID

Specifies the query language of the query string.

UseSelection
Boolean Boolean

True to use the current selection as the query string. This overrides the QueryString parameter if set. Default value is False.

LaunchQuery
Boolean Boolean

True launches the query. False displays the Research task pane scoped to search the specified research service.

Returns

Object

Applies to