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.StringName of interface for this Web Part.
connectedPart
Type: Microsoft.SharePoint.WebPartPages.WebPartReference to the Web Part to which this interface is connected.
connectedInterfaceName
Type: System.StringName of interface for connected Web Part.
runAt
Type: Microsoft.SharePoint.WebPartPages.Communication.ConnectionRunAtWhere the interface for this Web Part should run.