WebPartManager.CanConnectWebParts Method (WebPart, ProviderConnectionPoint, WebPart, ConsumerConnectionPoint, WebPartTransformer)
Assembly: System.Web (in system.web.dll)
public: virtual bool CanConnectWebParts ( WebPart^ provider, ProviderConnectionPoint^ providerConnectionPoint, WebPart^ consumer, ConsumerConnectionPoint^ consumerConnectionPoint, WebPartTransformer^ transformer )
public boolean CanConnectWebParts ( WebPart provider, ProviderConnectionPoint providerConnectionPoint, WebPart consumer, ConsumerConnectionPoint consumerConnectionPoint, WebPartTransformer transformer )
public function CanConnectWebParts ( provider : WebPart, providerConnectionPoint : ProviderConnectionPoint, consumer : WebPart, consumerConnectionPoint : ConsumerConnectionPoint, transformer : WebPartTransformer ) : boolean
Not applicable.
Parameters
- provider
The control that provides data to consumer when the controls are connected.
- providerConnectionPoint
A ConnectionPoint that acts as a callback method so that provider can participate in a connection.
- consumer
The control that receives data from provider when the controls are connected.
- consumerConnectionPoint
A ConnectionPoint that acts as a callback method so that consumer can participate in a connection.
- transformer
A WebPartTransformer that enables an incompatible provider and consumer to connect.
Return Value
A Boolean value that indicates whether provider and consumer can form a connection.The CanConnectWebParts(WebPart,ProviderConnectionPoint,WebPart,ConsumerConnectionPoint,WebPartTransformer) method is used to connect provider and consumer when both controls have incompatible connection point types, so that a WebPartTransformer object is required. You might want to use this method to verify that two controls can be connected before calling ConnectWebParts to create a programmatic connection.
This overload uses the same implementation as the CanConnectWebParts(WebPart,ProviderConnectionPoint,WebPart,ConsumerConnectionPoint) overload, with the only exception being that this overload requires a transformer.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.