Поделиться через


Класс PartialListReadyEventArgs

Примечание. Этот API устарел.

Список первой страницы данных для событий PartialListReady интерфейса IListProvider .

Иерархия наследования

System.Object
  System.EventArgs
    Microsoft.SharePoint.WebPartPages.Communication.PartialListReadyEventArgs

Пространство имен:  Microsoft.SharePoint.WebPartPages.Communication
Сборка:  Microsoft.SharePoint (в Microsoft.SharePoint.dll)

Синтаксис

'Декларация
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartTable instead")> _
Public Class PartialListReadyEventArgs _
    Inherits EventArgs
'Применение
Dim instance As PartialListReadyEventArgs
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartTable instead")]
public class PartialListReadyEventArgs : EventArgs

Примеры

В следующем примере кода приведена реализация обработчика событий PartialListReady . Данный пример кода является частью большего примера, приведенного для интерфейса IListProvider .

        // 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.
        }
        ' 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(ByVal sender As Object, ByVal partialListReadyEventArgs As 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.
        End Sub

Потокобезопасность

Любые общедоступные элементы static (Shared в Visual Basic) этого типа являются потокобезопасными. Не гарантируется, что любые элементы экземпляров потокобезопасны.

См. также

Справочные материалы

Элементы PartialListReadyEventArgs

Пространство имен Microsoft.SharePoint.WebPartPages.Communication