Compartilhar via


LimitFilter Class

Represents a Limit filter in theBusiness Data Connectivity (BDC) service.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    Microsoft.SharePoint.BusinessData.Runtime.FilterBase
      Microsoft.SharePoint.BusinessData.Runtime.UserInputFilter
        Microsoft.SharePoint.BusinessData.Runtime.LimitFilter

Namespace:  Microsoft.SharePoint.BusinessData.Runtime
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public NotInheritable Class LimitFilter _
    Inherits UserInputFilter
'Usage
Dim instance As LimitFilter
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public sealed class LimitFilter : UserInputFilter

Remarks

A Limit filter limits the number of external items returned from the external system method to n. When you use this filter, you pass in the number of external items you want returned in an input parameter to the external system method. The external system method then can process the input parameter and return the specified number of external items. SQL supports it with the SELECT TOP clause.

By using a Limit filter, you can prevent long waits, time outs, and bad queries issued by users, who request large amounts of data.

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

Reference

LimitFilter Members

Microsoft.SharePoint.BusinessData.Runtime Namespace