FederationManager.GetSource method
Returns a Result Source with the given Id that belongs to the specified owner.
Namespace: Microsoft.Office.Server.Search.Administration.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function GetSource ( _
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.GetSource(sourceId, _
owner)
public Source GetSource(
Guid sourceId,
SearchObjectOwner owner
)
Parameters
sourceId
Type: System.Guidthe Id of the Result Source (Must match Source.Id)
owner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerthe owner of the Result Source that should be returned
Return value
Type: Microsoft.Office.Server.Search.Administration.Query.Source
The specified Result Source, if one exists; null otherwise.
See also
Reference
Microsoft.Office.Server.Search.Administration.Query namespace