Share via


BrowserFormWebPart.IsCompatibleWith method

Overrides the IsCompatibleWith(WebPart, ConnectionPoint, ConnectionPoint) method to indicate whether the instance of the InfoPath Form Web Part as a provider control can communicate with the consumer control via the specified provider and consumer connection points.

Namespace:  Microsoft.Office.InfoPath.Server.Controls.WebUI
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Function IsCompatibleWith ( _
    consumerWebPart As WebPart, _
    srcConnectionPoint As ConnectionPoint, _
    targetConnectionPoint As ConnectionPoint _
) As Boolean
'Usage
Dim instance As BrowserFormWebPart
Dim consumerWebPart As WebPart
Dim srcConnectionPoint As ConnectionPoint
Dim targetConnectionPoint As ConnectionPoint
Dim returnValue As Boolean

returnValue = instance.IsCompatibleWith(consumerWebPart, _
    srcConnectionPoint, targetConnectionPoint)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public bool IsCompatibleWith(
    WebPart consumerWebPart,
    ConnectionPoint srcConnectionPoint,
    ConnectionPoint targetConnectionPoint
)

Parameters

Return value

Type: System.Boolean
true if the instance of the InfoPath Form Web Part provider control can communicate with the consumer control; otherwise, false.

Implements

IWebPartConnectionCompatibility.IsCompatibleWith(WebPart, ConnectionPoint, ConnectionPoint)

Remarks

This member is reserved for internal use and is not intended to be used directly from your code.

See also

Reference

BrowserFormWebPart class

BrowserFormWebPart members

Microsoft.Office.InfoPath.Server.Controls.WebUI namespace