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
PageEventArgs, classe
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
PageEventArgs Class

Provides data for the TotalRowCountAvailable event of a class that implements the IPageableItemContainer interface.

System..::.Object
  System..::.EventArgs
    System.Web.UI.WebControls..::.PageEventArgs

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

The PageEventArgs type exposes the following members.

  NameDescription
Public methodPageEventArgsInitializes a new instance of the PageEventArgs class.
Top
  NameDescription
Public propertyMaximumRowsGets the maximum number of records to display on each page.
Public propertyStartRowIndexGets the index of the first record on a page.
Public propertyTotalRowCountGets the total number of records in the underlying data source.
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 ListView object raises the TotalRowCountAvailable event when the control has obtained the total number of records of the underlying data source object. The DataPager control provides an event handler for this event named OnTotalRowCountAvailable. This event handler initializes page-related properties and creates the DataPagerField objects that are defined in the DataPager..::.Fields collection.

NoteNote

The TotalRowCountAvailable event is primarily used by control developers.

For more information about how to handle events, see Consuming Events.

For a list of initial property values for an instance of the PageEventArgs class, see the PageEventArgs constructor.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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
PageEventArgs, classe

Fournit des données pour l'événement TotalRowCountAvailable d'une classe qui implémente l'interface IPageableItemContainer.

System..::.Object
  System..::.EventArgs
    System.Web.UI.WebControls..::.PageEventArgs

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

Le type PageEventArgs expose les membres suivants.

  NomDescription
Méthode publiquePageEventArgsInitialise une nouvelle instance de la classe PageEventArgs.
Début
  NomDescription
Propriété publiqueMaximumRowsObtient le nombre maximal d'enregistrements à afficher sur chaque page.
Propriété publiqueStartRowIndexObtient l'index du premier enregistrement d'une page.
Propriété publiqueTotalRowCountObtient le nombre total d'enregistrements dans la source de données sous-jacente.
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

L'objet ListView déclenche l'événement TotalRowCountAvailable lorsque le contrôle a obtenu le nombre total d'enregistrements de l'objet source de données sous-jacent. Le contrôle DataPager fournit un gestionnaire pour cet événement nommé OnTotalRowCountAvailable. Ce gestionnaire d'événements initialise des propriétés de page connexes et crée les objets DataPagerField définis dans la collection DataPager..::.Fields.

RemarqueRemarque

L'événement TotalRowCountAvailable est principalement utilisé par des développeurs de contrôles.

Pour plus d'informations sur la gestion d'événements, consultez Consommation d'événements.

Pour obtenir la liste des valeurs initiales des propriétés d'une instance de la classe PageEventArgs, consultez le constructeur PageEventArgs.

.NET Framework

Pris en charge dans : 4, 3.5

Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, 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