PartialListReadyEventArgs class
NOTE: This API is now obsolete.
提供IListProvider介面的PartialListReady事件資料的第一頁的清單。
Inheritance hierarchy
System.Object
System.EventArgs
Microsoft.SharePoint.WebPartPages.Communication.PartialListReadyEventArgs
Namespace: Microsoft.SharePoint.WebPartPages.Communication
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<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
Examples
下列程式碼範例會顯示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
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.