del método IListConsumer.ListProviderInit
NOTA: esta API está ahora obsoleta.
Proporciona un controlador de eventos para el evento ListProviderInit de un elemento Web que implementa la interfaz IListProvider .
Espacio de nombres: Microsoft.SharePoint.WebPartPages.Communication
Ensamblado: Microsoft.SharePoint (en Microsoft.SharePoint.dll)
Sintaxis
'Declaración
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartTable instead")> _
Sub ListProviderInit ( _
sender As Object, _
listProviderInitEventArgs As ListProviderInitEventArgs _
)
'Uso
Dim instance As IListConsumer
Dim sender As Object
Dim listProviderInitEventArgs As ListProviderInitEventArgs
instance.ListProviderInit(sender, listProviderInitEventArgs)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartTable instead")]
void ListProviderInit(
Object sender,
ListProviderInitEventArgs listProviderInitEventArgs
)
Parámetros
sender
Tipo: System.ObjectReferencia para el elemento Web del consumidor.
listProviderInitEventArgs
Tipo: Microsoft.SharePoint.WebPartPages.Communication.ListProviderInitEventArgsLos argumentos se pasan por el proveedor de elemento Web.
Ejemplos
En el ejemplo de código siguiente se muestra una implementación del método ListProviderInit . Este ejemplo de código forma parte de un ejemplo más extenso de la interfaz IListConsumer .
' Step #6: Implement the ListProviderInit 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="listProviderInitEventArgs">The args passed by the
' provider Web Part</param>
Public Sub ListProviderInit(sender As Object, listProviderInitEventArgs As ListProviderInitEventArgs) _
Implements IListConsumer.ListProviderInit
End Sub 'ListProviderInit
' Because this class implements the IListConsumer interface, it must
' implement the interface member ListProviderInit. However, this
' example doesn't use any initialization data that is passed in here.
// Step #6: Implement the ListProviderInit 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="listProviderInitEventArgs">The args passed by the
// provider Web Part</param>
public void ListProviderInit(object sender, ListProviderInitEventArgs listProviderInitEventArgs)
{
// Because this class implements the IListConsumer interface, it
// must implement the interface member ListProviderInit. However,
// this example doesn't use any initialization data that is passed
// in here.
}
Vea también
Referencia
Espacio de nombres Microsoft.SharePoint.WebPartPages.Communication