ResultTableCollection.Filter method (String, Object)
Filters from the ResultTableCollection ResultTables that have a property equal to a value. Orders the returned ResultTables by ResultTable.Order.
Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public Function Filter ( _
propertyName As String, _
value As Object _
) As IEnumerable(Of ResultTable)
'Usage
Dim instance As ResultTableCollection
Dim propertyName As String
Dim value As Object
Dim returnValue As IEnumerable(Of ResultTable)
returnValue = instance.Filter(propertyName, _
value)
public IEnumerable<ResultTable> Filter(
string propertyName,
Object value
)
Parameters
propertyName
Type: System.StringThe name of the property in ResultTable to which the filtering will be applied.
value
Type: System.ObjectThe value the specified property must have, for the ResultTable to be included in the filtered set
Return value
Type: System.Collections.Generic.IEnumerable<ResultTable>
an IEnumerable of all the Tables that match the filter condition, ordered by ResultTable.Order
Remarks
The relative ordering of ResultTables returned by this fucntion that have the same calue for the Order property is undefined. ResultTables that do not have a property with name given by propertyName will not be returned.
Examples
You might do: resultTableCollection.Filter("RowCount",0) to get a IEnumerable for the empty ResultTables that are part of the ResultTableCollection.