IQuerypipelineManager.GetResultSourceListWithDefault method
List result sources according to a SearchObjectFilter along with the default result source for the given SearchObjectOwner in filter.
Namespace: Microsoft.Office.Server.Search.Administration.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<OperationContractAttribute> _
Function GetResultSourceListWithDefault ( _
filter As SearchObjectFilter, _
includeInactive As Boolean, _
<OutAttribute> ByRef defaultSource As SourceRecord _
) As List(Of SourceRecord)
'Usage
Dim instance As IQuerypipelineManager
Dim filter As SearchObjectFilter
Dim includeInactive As Boolean
Dim defaultSource As SourceRecord
Dim returnValue As List(Of SourceRecord)
returnValue = instance.GetResultSourceListWithDefault(filter, _
includeInactive, defaultSource)
[OperationContractAttribute]
List<SourceRecord> GetResultSourceListWithDefault(
SearchObjectFilter filter,
bool includeInactive,
out SourceRecord defaultSource
)
Parameters
filter
Type: Microsoft.Office.Server.Search.Administration.SearchObjectFilterResult sources will be included in the filtered set if they match the conditions described by these filter, as well as any condition put forth by other parameters.
includeInactive
Type: System.BooleanIf [true] inactive sources should be included in the filtered set otherwise not.
defaultSource
Type: Microsoft.Office.Server.Search.Administration.Query.SourceRecordAn [out] parameter that will contain the default result source for the SearchObjectOwner in filter. Please note that the defaultSource may or may not be contained in the list of result sources being returned.
Return value
Type: System.Collections.Generic.List<SourceRecord>
A list of result sources.
See also
Reference
IQuerypipelineManager interface
Microsoft.Office.Server.Search.Administration.Query namespace