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
consumerWebPart
Type: System.Web.UI.WebControls.WebParts.WebPartThe consumer Web Part.
srcConnectionPoint
Type: System.Web.UI.WebControls.WebParts.ConnectionPointThe connection point of the provider control.
targetConnectionPoint
Type: System.Web.UI.WebControls.WebParts.ConnectionPointThe connection point of the consumer control.
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