Partager via


SearchServiceApplicationInfo Constructor (Guid, Boolean, Boolean, Dictionary<String, String>, SearchProvider)

Initializes a new instance of the SearchServiceApplicationInfo based on the specified Search service application identifier (ID), with the specified query options configured.

Namespace:  Microsoft.Office.Server.Search.Query
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub New ( _
    searchServiceApplicationId As Guid, _
    queryLoggingEnabled As Boolean, _
    querySuggestionsEnabled As Boolean, _
    properties As Dictionary(Of String, String), _
    defaultSearchProvider As SearchProvider _
)
'Usage
Dim searchServiceApplicationId As Guid
Dim queryLoggingEnabled As Boolean
Dim querySuggestionsEnabled As Boolean
Dim properties As Dictionary(Of String, String)
Dim defaultSearchProvider As SearchProvider

Dim instance As New SearchServiceApplicationInfo(searchServiceApplicationId, _
    queryLoggingEnabled, querySuggestionsEnabled, _
    properties, defaultSearchProvider)
public SearchServiceApplicationInfo(
    Guid searchServiceApplicationId,
    bool queryLoggingEnabled,
    bool querySuggestionsEnabled,
    Dictionary<string, string> properties,
    SearchProvider defaultSearchProvider
)

Parameters

  • searchServiceApplicationId
    Type: System.Guid

    The Search service application ID.

  • queryLoggingEnabled
    Type: System.Boolean

    Set to true to enable query logging; otherwise false.

  • querySuggestionsEnabled
    Type: System.Boolean

    true to enable query suggestions; otherwise false.

See Also

Reference

SearchServiceApplicationInfo Class

SearchServiceApplicationInfo Members

SearchServiceApplicationInfo Overload

Microsoft.Office.Server.Search.Query Namespace