IParametersOutConsumer.ParametersOutProviderInit method
NOTE: This API is now obsolete.
Fornece um manipulador de eventos para um consumidor de Web Part para processar o evento de ParametersOutProviderInit de um provedor de Web Part que implementa a interface IParametersOutProvider .
Namespace: Microsoft.SharePoint.WebPartPages.Communication
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaração
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartParameters instead")> _
Sub ParametersOutProviderInit ( _
sender As Object, _
parametersOutProviderInitEventArgs As ParametersOutProviderInitEventArgs _
)
'Uso
Dim instance As IParametersOutConsumer
Dim sender As Object
Dim parametersOutProviderInitEventArgs As ParametersOutProviderInitEventArgs
instance.ParametersOutProviderInit(sender, _
parametersOutProviderInitEventArgs)
[ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartParameters instead")]
void ParametersOutProviderInit(
Object sender,
ParametersOutProviderInitEventArgs parametersOutProviderInitEventArgs
)
Parâmetros
sender
Type: System.ObjectUma Web Part que implementa a interface IParametersOutProvider .
parametersOutProviderInitEventArgs
Type: Microsoft.SharePoint.WebPartPages.Communication.ParametersOutProviderInitEventArgsUm ParametersOutProviderInitEventArgs que fornece uma matriz de objetos ParameterOutProperty . Cada objeto contém valores de propriedade para um parâmetro.
Examples
O exemplo de código a seguir mostra uma implementação de um método ParametersOutProviderInit . Este exemplo de código é parte de um exemplo maior fornecido para a interface IParametersOutConsumer .
' Step #6: Implement the ParametersOutProviderInit event handler.
' The connected provider part 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="parametersOutProviderInitEventArgs">The args passed by
' the provider Web Part</param>
Public Sub ParametersOutProviderInit(sender As Object, parametersOutProviderInitEventArgs As ParametersOutProviderInitEventArgs) _
Implements IParametersOutConsumer.ParametersOutProviderInit
' Store the provider part properties.
_parametersOutProviderInitEventArgs = parametersOutProviderInitEventArgs
End Sub
// Step #6: Implement the ParametersOutProviderInit event handler.
// The connected provider part 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="parametersOutProviderInitEventArgs">The args passed by
// the provider Web Part</param>
public void ParametersOutProviderInit(object sender, ParametersOutProviderInitEventArgs parametersOutProviderInitEventArgs)
{
// Store the provider part properties.
_parametersOutProviderInitEventArgs = parametersOutProviderInitEventArgs;
}
Ver também
Referência
IParametersOutConsumer interface