IWebPartConnectionCompatibility.IsCompatibleWith method

Returns a flag that indicates whether the provider control can communicate with the consumer control via the specified provider and consumer connection points.

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

Syntax

'Declaration
Function IsCompatibleWith ( _
    consumerWebPart As WebPart, _
    srcConnectionPoint As ConnectionPoint, _
    targetConnectionPoint As ConnectionPoint _
) As Boolean
'Usage
Dim instance As IWebPartConnectionCompatibility
Dim consumerWebPart As WebPart
Dim srcConnectionPoint As ConnectionPoint
Dim targetConnectionPoint As ConnectionPoint
Dim returnValue As Boolean

returnValue = instance.IsCompatibleWith(consumerWebPart, _
    srcConnectionPoint, targetConnectionPoint)
bool IsCompatibleWith(
    WebPart consumerWebPart,
    ConnectionPoint srcConnectionPoint,
    ConnectionPoint targetConnectionPoint
)

Parameters

Return value

Type: System.Boolean
true if the provider control can communicate with the consumer control; otherwise, false.

Remarks

This method is implemented by the Web Part classes.

See also

Reference

IWebPartConnectionCompatibility interface

IWebPartConnectionCompatibility members

Microsoft.SharePoint.WebPartPages.Communication namespace