IQuerypipelineManager.UpdateDefaultResultSource method

Updates the the default result source for the given owner to an exisiting Source specified by sourceId.

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

Syntax

'Declaration
<OperationContractAttribute> _
Function UpdateDefaultResultSource ( _
    sourceId As Guid, _
    owner As SearchObjectOwner _
) As SourceRecord
'Usage
Dim instance As IQuerypipelineManager
Dim sourceId As Guid
Dim owner As SearchObjectOwner
Dim returnValue As SourceRecord

returnValue = instance.UpdateDefaultResultSource(sourceId, _
    owner)
[OperationContractAttribute]
SourceRecord UpdateDefaultResultSource(
    Guid sourceId,
    SearchObjectOwner owner
)

Parameters

  • sourceId
    Type: System.Guid

    Unique identifier of the result source that must be set as the default source.

Return value

Type: Microsoft.Office.Server.Search.Administration.Query.SourceRecord
Returns the previous default result source for the given owner.

Remarks

Throws exception if the given result source is not accessible to the given owner.

See also

Reference

IQuerypipelineManager interface

IQuerypipelineManager members

Microsoft.Office.Server.Search.Administration.Query namespace