Share via


FederationManager.UpdateDefaultSource 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
Public Function UpdateDefaultSource ( _
    sourceId As Guid, _
    owner As SearchObjectOwner _
) As Source
'Usage
Dim instance As FederationManager
Dim sourceId As Guid
Dim owner As SearchObjectOwner
Dim returnValue As Source

returnValue = instance.UpdateDefaultSource(sourceId, _
    owner)
public Source UpdateDefaultSource(
    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.Source
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

FederationManager class

FederationManager members

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