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.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.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
Microsoft.Office.Server.Search.Administration.Query namespace