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.String

    Required String Specifies a GUID that identifies the research service.

  • QueryString
    Type: System.Object

    Optional Object Specifies the query string.

  • QueryLanguage
    Type: System.Object

    Optional Object Specifies the query language of the query string.

  • UseSelection
    Type: System.Object

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

  • LaunchQuery
    Type: System.Object

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

Return Value

Type: System.Object
Object

See Also

Reference

Research Interface

Research Members

Microsoft.Office.Interop.Excel Namespace