共用方式為


IParametersOutConsumer.ParametersOutProviderInit Method

NOTE: This API is now obsolete.

Provides an event handler for a consumer Web Part to process the ParametersOutProviderInit event of a provider Web Part that implements the IParametersOutProvider interface.

Namespace:  Microsoft.SharePoint.WebPartPages.Communication
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use System.Web.UI.WebControls.WebParts.IWebPartParameters instead")> _
Sub ParametersOutProviderInit ( _
    sender As Object, _
    parametersOutProviderInitEventArgs As ParametersOutProviderInitEventArgs _
)
'Usage
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
)

Parameters

  • sender
    Type: System.Object

    A Web Part that implements the IParametersOutProvider interface.

Examples

The following code example shows an implementation of a ParametersOutProviderInit method. This code example is part of a larger example provided for the IParametersOutConsumer interface.

' 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;
}

See Also

Reference

IParametersOutConsumer Interface

IParametersOutConsumer Members

Microsoft.SharePoint.WebPartPages.Communication Namespace