Partilhar via


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