LimitFilter, classe (Microsoft.Office.Server.ApplicationRegistry.Runtime)
Represents a Limit filter in the Business Data Catalog.
Espace de noms : Microsoft.Office.Server.ApplicationRegistry.Runtime
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel:=True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel:=True)> _
Public Class LimitFilter
Inherits UserInputFilter
'Utilisation
Dim instance As LimitFilter
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel=true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel=true)]
public class LimitFilter : UserInputFilter
Remarques
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.
Notes
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.
Hiérarchie d'héritage
System.Object
Microsoft.Office.Server.ApplicationRegistry.Runtime.FilterBase
Microsoft.Office.Server.ApplicationRegistry.Runtime.UserInputFilter
Microsoft.Office.Server.ApplicationRegistry.Runtime.LimitFilter
Sécurité des threads
Les membres statiques publics de ce type (Shared en Visual Basic) sont sécurisés au niveau des threads. Il n'est pas garanti que les membres d'instance soient sécurisés au niveau des threads.
Voir aussi
Référence
Membres LimitFilter
Microsoft.Office.Server.ApplicationRegistry.Runtime, espace de noms