ResultTableCollection Class (Microsoft.Office.Server.Search.Query)
Represents a collection of ResultTable objects.

Namespace: Microsoft.Office.Server.Search.Query
Assembly: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
Syntax

Visual Basic (Declaration)
<DefaultMemberAttribute("Item")> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel:=True)> _
Public NotInheritable Class ResultTableCollection
    Implements IEnumerable
Visual Basic (Usage)
Dim instance As ResultTableCollection
C#
[DefaultMemberAttribute("Item")] 
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel=true)] 
public sealed class ResultTableCollection : IEnumerable
Inheritance Hierarchy

System.Object
  Microsoft.Office.Server.Search.Query.ResultTableCollection
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Tags :


Community Content

ZackB
Disposing of ResultTableCollection

The ResultTableCollection doesn't explicitly expose a Dispose() method, however each of the ResultTables within the collection does.  Since the ResultTables contain references to non-managed objects and data they won't be removed by garbage collection unless .Dispose() is explicitly called on them.  To avoid a slow buildup of non-freed memory it is a good practice to itterate through all of the collection and explicitly dispose of each of the result tables.

Tags :

Page view tracker