del método IRowConsumer.RowReady
NOTA: esta API está ahora obsoleta.
Proporciona un controlador de eventos para el evento RowReady de un proveedor de elemento Web que implementa la interfaz deIRowProvider.
Espacio de nombres: Microsoft.SharePoint.WebPartPages.Communication
Ensamblado: Microsoft.SharePoint (en Microsoft.SharePoint.dll)
Sintaxis
'Declaración
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartRow instead")> _
Sub RowReady ( _
sender As Object, _
rowReadyEventArgs As RowReadyEventArgs _
)
'Uso
Dim instance As IRowConsumer
Dim sender As Object
Dim rowReadyEventArgs As RowReadyEventArgs
instance.RowReady(sender, rowReadyEventArgs)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartRow instead")]
void RowReady(
Object sender,
RowReadyEventArgs rowReadyEventArgs
)
Parámetros
sender
Tipo: System.ObjectUna referencia al elemento Web que es el origen del evento.
rowReadyEventArgs
Tipo: Microsoft.SharePoint.WebPartPages.Communication.RowReadyEventArgsLos datos del evento RowReady .
Comentarios
Si el elemento Web de consumidor sólo espera una fila, siempre debe tomar la primera fila de la matriz y omitir las demás filas. Varias filas pueden utilizarse en casos donde un elemento Web puede trabajar con un conjunto de filas (por ejemplo, cuando se seleccionan varias filas). Este controlador de eventos es del tipo RowReadyEventHandler.
Ejemplos
En el ejemplo de código siguiente se muestra la implementación de un controlador de eventos RowReady . Este ejemplo de código forma parte de un ejemplo más extenso de la interfaz IRowConsumer .
' Step #7: Implement the RowReady event handler.
' The connected provider part(s) will call this method during its
' PartCommunicationMain phase to pass their primary data to the
' consumer Web Part.
' <param name="sender">Reference to the provider Web Part</param>
' <param name="rowReadyEventArgs">The args passed by the provider Web
' Part</param>
Public Sub RowReady(sender As Object, rowReadyEventArgs As RowReadyEventArgs) _
Implements IRowConsumer.RowReady
' Store the row values.
If Not (rowReadyEventArgs.Rows Is Nothing) Then
If Not (rowReadyEventArgs.Rows(0) Is Nothing) Then
_rowFieldValues(0) = rowReadyEventArgs.Rows(0)
End If
End If
_selectionStatus = rowReadyEventArgs.SelectionStatus
End Sub
// Step #7: Implement the RowReady event handler.
// The connected provider part(s) will call this method during its
// PartCommunicationMain phase
// to pass their primary data to the consumer Web Part.
// <param name="sender">Reference to the provider Web Part</param>
// <param name="rowReadyEventArgs">The args passed by the provider Web Part</param>
public void RowReady(object sender, RowReadyEventArgs rowReadyEventArgs)
{
// Store the row values.
if(rowReadyEventArgs.Rows!= null)
{
if(rowReadyEventArgs.Rows[0]!=null)
{
_rowFieldValues[0] = rowReadyEventArgs.Rows[0];
}
}
_selectionStatus = rowReadyEventArgs.SelectionStatus;
}
Vea también
Referencia
Espacio de nombres Microsoft.SharePoint.WebPartPages.Communication