IListConsumer.PartialListReady - Méthode
Remarque : cette API est désormais obsolète.
Fournit un gestionnaire d'événements pour l'événement PartialListReady d'un composant WebPart qui implémente l'interface IListProvider .
Espace de noms : Microsoft.SharePoint.WebPartPages.Communication
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartTable instead")> _
Sub PartialListReady ( _
sender As Object, _
partialListReadyEventArgs As PartialListReadyEventArgs _
)
'Utilisation
Dim instance As IListConsumer
Dim sender As Object
Dim partialListReadyEventArgs As PartialListReadyEventArgs
instance.PartialListReady(sender, partialListReadyEventArgs)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartTable instead")]
void PartialListReady(
Object sender,
PartialListReadyEventArgs partialListReadyEventArgs
)
Paramètres
sender
Type : System.ObjectUn composant WebPart qui implémente l'interface IListProvider .
partialListReadyEventArgs
Type : Microsoft.SharePoint.WebPartPages.Communication.PartialListReadyEventArgsPartialListReadyEventArgs qui fournit la liste consommée.
Remarques
La méthode PartialListReady est exécutée lors de la réception de la première page de données à partir de la liste consommée.
Exemples
L'exemple de code suivant illustre l'implémentation de l'événement PartialListReady . Cet exemple de code fait partie d'un exemple plus développé fourni pour l'interface IListConsumer .
' Step #8: Implement the PartialListReady event handler.
' The connected provider part(s) will call this method during its
' PartCommunicationMain phase to pass partial amounts of their primary
' data to the consumer Web Part. This is useful in
' scenarios involving large datasets that need to be streamed.
' <param name="sender">Reference to the provider Web Part</param>
' <param name="partialListReadyEventArgs">The args passed by the
' provider Web Part</param>
Public Sub PartialListReady(sender As Object, partialListReadyEventArgs As PartialListReadyEventArgs) _
Implements IListConsumer.PartialListReady
End Sub
' Because this class implements the IListConsumer interface, it must
' implement the interface member PartialListReady. However, this
' example doesn't use any data that may be passed in here.
// Step #8: Implement the PartialListReady event handler.
// The connected provider part(s) will call this method during its
// PartCommunicationMain phase to pass partial amounts of their primary
// data to the consumer Web Part. This is useful in
// scenarios involving large datasets that need to be streamed.
// <param name="sender">Reference to the provider Web Part</param>
// <param name="partialListReadyEventArgs">The args passed by the
// provider Web Part</param>
public void PartialListReady(object sender, PartialListReadyEventArgs partialListReadyEventArgs)
{
// Because this class implements the IListConsumer interface, it
// must implement the interface member PartialListReady. However,
// this example doesn't use any data that may be passed in here.
}
Voir aussi
Référence
Microsoft.SharePoint.WebPartPages.Communication - Espace de noms