Research.Query Method
Specifies a research query.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function Query ( _
ServiceID As String, _
QueryString As String, _
QueryLanguage As WdLanguageID, _
UseSelection As Boolean, _
LaunchQuery As Boolean _
) As Object
'Usage
Dim instance As Research
Dim ServiceID As String
Dim QueryString As String
Dim QueryLanguage As WdLanguageID
Dim UseSelection As Boolean
Dim LaunchQuery As Boolean
Dim returnValue As Object
returnValue = instance.Query(ServiceID, _
QueryString, QueryLanguage, UseSelection, _
LaunchQuery)
Object Query(
string ServiceID,
string QueryString,
WdLanguageID QueryLanguage,
bool UseSelection,
bool LaunchQuery
)
Parameters
- ServiceID
Type: System.String
Specifies a GUID that identifies the research service.
- QueryString
Type: System.String
Specifies the query string.
- QueryLanguage
Type: Microsoft.Office.Interop.Word.WdLanguageID
Specifies the query language of the query string.
- UseSelection
Type: System.Boolean
True to use the current selection as the query string. This overrides the QueryString parameter if set. Default value is False.
- LaunchQuery
Type: System.Boolean
True launches the query. False displays the Research task pane scoped to search the specified research service.
Return Value
Type: System.Object
Object