Compartir a través de


: LimitFilter (Clase) (Microsoft.Office.Server.ApplicationRegistry.Runtime)

Represents a Limit filter in the Business Data Catalog.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public Class LimitFilter
    Inherits UserInputFilter
'Uso
Dim instance As LimitFilter
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)] 
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)] 
public class LimitFilter : UserInputFilter

Comentarios

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.

Nota

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.

Jerarquía de herencia

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

Seguridad de subprocesos

Todos los miembros estáticos públicos (compartidos en Visual Basic) de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para los subprocesos.

Vea también

Referencia

LimitFilter (Miembros)
Microsoft.Office.Server.ApplicationRegistry.Runtime (Espacio de nombres)