ערוך

שתף באמצעות


WebPartZoneBase.ConnectWebPart(WebPart) Method

Definition

Initiates the process of creating a connection between two WebPart controls.

protected:
 virtual void ConnectWebPart(System::Web::UI::WebControls::WebParts::WebPart ^ webPart);
protected virtual void ConnectWebPart (System.Web.UI.WebControls.WebParts.WebPart webPart);
abstract member ConnectWebPart : System.Web.UI.WebControls.WebParts.WebPart -> unit
override this.ConnectWebPart : System.Web.UI.WebControls.WebParts.WebPart -> unit
Protected Overridable Sub ConnectWebPart (webPart As WebPart)

Parameters

webPart
WebPart

The WebPart control that initiates the connection with another selected WebPart control.

Exceptions

webPart is null.

Remarks

The ConnectWebPart method can be called only when the page is in connect display mode (ConnectDisplayMode). The method in turn calls the BeginWebPartConnecting method, which completes the several steps necessary to fully connect two WebPart controls. The method should only be used by derived WebPartZoneBase zones such as WebPartZone.

Applies to

See also