.NET Framework Class Library ObjectDataSourceSelectingEventArgs Class

Inheritance Hierarchy
Namespace:
System.Web.UI.WebControls
Assembly:
System.Web (in System.Web.dll)

Syntax
Public Class ObjectDataSourceSelectingEventArgs _
Inherits ObjectDataSourceMethodEventArgs
public class ObjectDataSourceSelectingEventArgs : ObjectDataSourceMethodEventArgs
public ref class ObjectDataSourceSelectingEventArgs : public ObjectDataSourceMethodEventArgs
type ObjectDataSourceSelectingEventArgs =
class
inherit ObjectDataSourceMethodEventArgs
end
The ObjectDataSourceSelectingEventArgs type exposes the following members.

Constructors

Properties

Methods

Remarks
The ObjectDataSourceSelectingEventArgs class is used in the OnSelecting method. Because it is derived from the ObjectDataSourceMethodEventArgs class, the ObjectDataSourceSelectingEventArgs class provides access to input parameters for validation and manipulation through the InputParameters property. The ObjectDataSourceSelectingEventArgs class also provides the ExecutingSelectCount property, which is used to check whether the currently executing data retrieval operation is retrieving a row count, in addition to the data. This is important because when data source paging is enabled, the Selecting event is raised twice. For more information, see ExecutingSelectCount. The ObjectDataSource control exposes many events that you can handle to work with the underlying business object at various times in its life cycle. The following table lists the events and associated EventArgs classes and event handler delegates.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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
|
Bibliothèque de classes .NET Framework ObjectDataSourceSelectingEventArgs, classe

Hiérarchie d'héritage
Espace de noms :
System.Web.UI.WebControls
Assembly :
System.Web (dans System.Web.dll)

Syntaxe
Public Class ObjectDataSourceSelectingEventArgs _
Inherits ObjectDataSourceMethodEventArgs
public class ObjectDataSourceSelectingEventArgs : ObjectDataSourceMethodEventArgs
public ref class ObjectDataSourceSelectingEventArgs : public ObjectDataSourceMethodEventArgs
type ObjectDataSourceSelectingEventArgs =
class
inherit ObjectDataSourceMethodEventArgs
end
Le type ObjectDataSourceSelectingEventArgs expose les membres suivants.

Constructeurs

Propriétés

Méthodes

Notes
La classe ObjectDataSourceSelectingEventArgs est utilisée dans la méthode OnSelecting. Étant donné qu'elle est dérivée de la classe ObjectDataSourceMethodEventArgs, la classe ObjectDataSourceSelectingEventArgs fournit un accès aux paramètres d'entrée pour la validation et la manipulation via la propriété InputParameters. La classe ObjectDataSourceSelectingEventArgs fournit également la propriété ExecutingSelectCount utilisée pour vérifier si l'opération de récupération de données en cours d'exécution récupère un nombre de lignes, en plus des données. Ceci est important car, lorsque la pagination de la source de données est activée, l'événement Selecting est déclenché deux fois. Pour plus d'informations, consultez ExecutingSelectCount. Le contrôle ObjectDataSource expose plusieurs événements que vous pouvez gérer pour utiliser l'objet métier sous-jacent à divers stades de son cycle de vie. Le tableau suivant répertorie les événements et les classes EventArgs et délégués de gestionnaires d'événements associés.

Informations de version
.NET FrameworkPris en charge dans : 4, 3.5, 3.0, 2.0

Plateformes
Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Sécurité des threads
Tous les membres static ( Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi
|