Suggérer une traduction
 
Suggestions d'autres utilisateurs :

progress indicator
Aucune autre suggestion.
Cliquez pour évaluer et commenter
MSDN
MSDN Library
Développement .NET
.NET Framework 4
Espaces de noms System.Web
System.Web.UI.WebControls
Réduire tout/Développer tout Réduire tout
Affichage du contenu :  côte à côteAffichage du contenu : côte à côte
.NET Framework Class Library
ObjectDataSourceSelectingEventArgs Class

Provides data for the Selecting event of the ObjectDataSource control.

System..::.Object
  System..::.EventArgs
    System.ComponentModel..::.CancelEventArgs
      System.Web.UI.WebControls..::.ObjectDataSourceMethodEventArgs
        System.Web.UI.WebControls..::.ObjectDataSourceSelectingEventArgs

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Visual Basic
Public Class ObjectDataSourceSelectingEventArgs _
    Inherits ObjectDataSourceMethodEventArgs
C#
public class ObjectDataSourceSelectingEventArgs : ObjectDataSourceMethodEventArgs
Visual C++
public ref class ObjectDataSourceSelectingEventArgs : public ObjectDataSourceMethodEventArgs
F#
type ObjectDataSourceSelectingEventArgs =  
    class
        inherit ObjectDataSourceMethodEventArgs
    end

The ObjectDataSourceSelectingEventArgs type exposes the following members.

  NameDescription
Public methodObjectDataSourceSelectingEventArgsInitializes a new instance of the ObjectDataSourceSelectingEventArgs class.
Top
  NameDescription
Public propertyArgumentsProvides a mechanism that the ObjectDataSource object can use to request data-related operations when data is retrieved.
Public propertyCancelGets or sets a value indicating whether the event should be canceled. (Inherited from CancelEventArgs.)
Public propertyExecutingSelectCountGets a value indicating whether the ObjectDataSource is retrieving a row count during a data retrieval operation.
Public propertyInputParametersGets a collection that contains business object method parameters and their values. (Inherited from ObjectDataSourceMethodEventArgs.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

Event

EventArgs

EventHandler

ObjectCreating.

Occurs immediately before the business object is instantiated.

ObjectDataSourceEventArgs

ObjectDataSourceObjectEventHandler

ObjectCreated.

Occurs immediately after the business object is instantiated.

ObjectDataSourceEventArgs

ObjectDataSourceObjectEventHandler

Selecting.

Occurs before the data is retrieved.

ObjectDataSourceSelectingEventArgs

ObjectDataSourceSelectingEventHandler

Inserting, Updating, and Deleting.

Occur before an insert, update, or delete operation is performed.

ObjectDataSourceMethodEventArgs

ObjectDataSourceMethodEventHandler

Selected.

Occurs after the data is retrieved.

ObjectDataSourceStatusEventArgs

ObjectDataSourceStatusEventHandler

Inserted, Updated, and Deleted.

Occur after the insert, update, or delete operation is completed.

ObjectDataSourceStatusEventArgs

ObjectDataSourceStatusEventHandler

ObjectDisposing.

Occurs before a business object is destroyed.

ObjectDataSourceDisposingEventArgs

ObjectDataSourceDisposingEventHandler

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Bibliothèque de classes .NET Framework
ObjectDataSourceSelectingEventArgs, classe

Fournit des données pour l'événement Selecting du contrôle ObjectDataSource.

System..::.Object
  System..::.EventArgs
    System.ComponentModel..::.CancelEventArgs
      System.Web.UI.WebControls..::.ObjectDataSourceMethodEventArgs
        System.Web.UI.WebControls..::.ObjectDataSourceSelectingEventArgs

Espace de noms :  System.Web.UI.WebControls
Assembly :  System.Web (dans System.Web.dll)
Visual Basic
Public Class ObjectDataSourceSelectingEventArgs _
    Inherits ObjectDataSourceMethodEventArgs
C#
public class ObjectDataSourceSelectingEventArgs : ObjectDataSourceMethodEventArgs
VisualC++
public ref class ObjectDataSourceSelectingEventArgs : public ObjectDataSourceMethodEventArgs
F#
type ObjectDataSourceSelectingEventArgs =  
    class
        inherit ObjectDataSourceMethodEventArgs
    end

Le type ObjectDataSourceSelectingEventArgs expose les membres suivants.

  NomDescription
Méthode publiqueObjectDataSourceSelectingEventArgsInitialise une nouvelle instance de la classe ObjectDataSourceSelectingEventArgs.
Début
  NomDescription
Propriété publiqueArgumentsFournit un mécanisme que l'objet ObjectDataSource peut utiliser pour demander des opérations liées aux données lorsque les données sont récupérées.
Propriété publiqueCancelObtient ou définit une valeur indiquant si l'événement doit être annulé. (Hérité de CancelEventArgs.)
Propriété publiqueExecutingSelectCountObtient une valeur indiquant si ObjectDataSource récupère un nombre de lignes pendant une opération de récupération de données.
Propriété publiqueInputParametersObtient une collection qui contient les paramètres de la méthode de l'objet métier et leurs valeurs. (Hérité de ObjectDataSourceMethodEventArgs.)
Début
  NomDescription
Méthode publiqueEquals(Object)Détermine si l'Object spécifié est égal à l'Object en cours. (Hérité de Object.)
Méthode protégéeFinalizeAutorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de netto***ge avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode publiqueGetHashCodeSert de fonction de hachage pour un type particulier. (Hérité de Object.)
Méthode publiqueGetTypeObtient le Type de l'instance actuelle. (Hérité de Object.)
Méthode protégéeMemberwiseCloneCrée une copie superficielle de l'objet Object actif. (Hérité de Object.)
Méthode publiqueToStringRetourne une chaîne qui représente l'objet actuel. (Hérité de Object.)
Début

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.

Événement

EventArgs

EventHandler

ObjectCreating.

Se produit immédiatement avant l'instanciation de l'objet métier.

ObjectDataSourceEventArgs

ObjectDataSourceObjectEventHandler

ObjectCreated.

Se produit immédiatement après l'instanciation de l'objet métier.

ObjectDataSourceEventArgs

ObjectDataSourceObjectEventHandler

Selecting.

Se produit avant la récupération des données.

ObjectDataSourceSelectingEventArgs

ObjectDataSourceSelectingEventHandler

Inserting, Updating, et Deleting.

Se produisent avant une opération d'insertion, de mise à jour ou de suppression.

ObjectDataSourceMethodEventArgs

ObjectDataSourceMethodEventHandler

Selected.

Se produit après la récupération des données.

ObjectDataSourceStatusEventArgs

ObjectDataSourceStatusEventHandler

Inserted, Updated, et Deleted.

Se produisent après l'opération d'insertion, de mise à jour ou de suppression.

ObjectDataSourceStatusEventArgs

ObjectDataSourceStatusEventHandler

ObjectDisposing.

Se produit avant la suppression d'un objet métier.

ObjectDataSourceDisposingEventArgs

ObjectDataSourceDisposingEventHandler

.NET Framework

Pris en charge dans : 4, 3.5, 3.0, 2.0

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.
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.
Contenu de la communauté   Qu'est-ce que le Contenu de la communauté ?
Ajouter du contenu RSS  Annotations
Processing
© 2012 Microsoft. Tous droits réservés. Conditions d'utilisation | Marques | Confidentialité
Page view tracker