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