LimitFilter 类 (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Represents a Limit filter in the Business Data Catalog.

命名空间: Microsoft.Office.Server.ApplicationRegistry.Runtime
程序集: Microsoft.SharePoint.Portal (在 microsoft.sharepoint.portal.dll 中)

语法

声明
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public Class LimitFilter
    Inherits UserInputFilter
用法
Dim instance As LimitFilter
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public class LimitFilter : UserInputFilter

备注

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

备注

The Limit filter does nothing to preclude bringing back large amounts of data. It is up to the metadata author to hook up the filter to an API that actually limits data. Filters are just descriptor abstractions.

By using a Limit filter, you can prevent long waits, time outs, and users from issuing bad queries that request large amounts of data.

继承层次结构

System.Object
   Microsoft.Office.Server.ApplicationRegistry.Runtime.FilterBase
     Microsoft.Office.Server.ApplicationRegistry.Runtime.UserInputFilter
      Microsoft.Office.Server.ApplicationRegistry.Runtime.LimitFilter

线程安全性

此类型的任何公共静态( Visual Basic 中共享)成员是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

LimitFilter 成员
Microsoft.Office.Server.ApplicationRegistry.Runtime 命名空间