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.GuidUnique identifier of the result source that must be set as the default source.
owner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerThe SearchObjectOwner for which the default result source needs to be updated.
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
Microsoft.Office.Server.Search.Administration.Query namespace