FederationManager.GetSourceByName method
Returns a Result Source with the given name 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 GetSourceByName ( _
name As String, _
owner As SearchObjectOwner _
) As Source
'Usage
Dim instance As FederationManager
Dim name As String
Dim owner As SearchObjectOwner
Dim returnValue As Source
returnValue = instance.GetSourceByName(name, _
owner)
public Source GetSourceByName(
string name,
SearchObjectOwner owner
)
Parameters
name
Type: System.Stringthe name of the Result Source (Must match Source.Name)
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