ImageWebPart.PartCommunicationConnect Method

Notifies the Web Part that it has been connected. The Web Part is told where it should run, to which Web Part it is connected and over which interface it is connected.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Sub PartCommunicationConnect ( _
    interfaceName As String, _
    connectedPart As WebPart, _
    connectedInterfaceName As String, _
    runAt As ConnectionRunAt _
)
'Usage
Dim instance As ImageWebPart
Dim interfaceName As String
Dim connectedPart As WebPart
Dim connectedInterfaceName As String
Dim runAt As ConnectionRunAt

instance.PartCommunicationConnect(interfaceName, _
    connectedPart, connectedInterfaceName, _
    runAt)
public override void PartCommunicationConnect(
    string interfaceName,
    WebPart connectedPart,
    string connectedInterfaceName,
    ConnectionRunAt runAt
)

Parameters

  • interfaceName
    Type: System.String

    Name of interface for this Web Part.

  • connectedInterfaceName
    Type: System.String

    Name of interface for connected Web Part.

See Also

Reference

ImageWebPart Class

ImageWebPart Members

Microsoft.SharePoint.WebPartPages Namespace