ConnectionsZone.WebPartToConnect Property

Definition

Gets the currently selected WebPart control to connect to.

protected:
 property System::Web::UI::WebControls::WebParts::WebPart ^ WebPartToConnect { System::Web::UI::WebControls::WebParts::WebPart ^ get(); };
protected System.Web.UI.WebControls.WebParts.WebPart WebPartToConnect { get; }
member this.WebPartToConnect : System.Web.UI.WebControls.WebParts.WebPart
Protected ReadOnly Property WebPartToConnect As WebPart

Property Value

A WebPart control.

Remarks

When a user switches a Web page into connect display mode, and clicks the connect verb on the verbs menu of a WebPart control that is enabled for connections, the connection user interface (UI) opens, and the control is now referenced by the WebPartToConnect property.

Note

The control referenced by the WebPartToConnect property gets its value from the SelectedWebPart property of the current WebPartManager object.

Applies to

See also