IRowConsumer.RowProviderInit Method
NOTE: This API is now obsolete.
Implements an event handler to receive initialization information when it is connected to Web Part that implements the IRowProvider interface.
Namespace: Microsoft.SharePoint.WebPartPages.Communication
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartRow instead")> _
Sub RowProviderInit ( _
sender As Object, _
rowProviderInitEventArgs As RowProviderInitEventArgs _
)
'Usage
Dim instance As IRowConsumer
Dim sender As Object
Dim rowProviderInitEventArgs As RowProviderInitEventArgs
instance.RowProviderInit(sender, rowProviderInitEventArgs)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartRow instead")]
void RowProviderInit(
Object sender,
RowProviderInitEventArgs rowProviderInitEventArgs
)
Parameters
sender
Type: System.ObjectA reference to the Web Part that is the source of the event.
rowProviderInitEventArgs
Type: Microsoft.SharePoint.WebPartPages.Communication.RowProviderInitEventArgsThe RowProviderInit event data.
Examples
The following code example shows the implementation of a RowProviderInit event handler. This code example is part of a larger example provided for the IRowConsumer interface.
' Step #6: Implement the RowProviderInit event handler.
' The connected provider part(s) will call this method during its
' PartCommunicationInit phase to pass initialization information to
' the consumer Web Part.
' <param name="sender">Reference to the Consumer Web Part</param>
' <param name="rowProviderInitEventArgs">The args passed by the
' provider Web Part</param>
Public Sub RowProviderInit(sender As Object, rowProviderInitEventArgs As RowProviderInitEventArgs) _
Implements IRowConsumer.RowProviderInit
' Store the field list
_rowFieldDisplayNames = rowProviderInitEventArgs.FieldDisplayList
End Sub
// Step #6: Implement the RowProviderInit event handler.
// The connected provider part(s) will call this method during its
// PartCommunicationInit phase to pass initialization information to
// the consumer Web Part.
// <param name="sender">Reference to the Consumer Web Part</param>
// <param name="rowProviderInitEventArgs">The args passed by the
// provider Web Part</param>
public void RowProviderInit(object sender, RowProviderInitEventArgs rowProviderInitEventArgs)
{
// Store the field list
_rowFieldDisplayNames = rowProviderInitEventArgs.FieldDisplayList;
}