WebPartZoneBase.ConnectWebPart(WebPart) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om