WebPart.OnConnectModeChanged(EventArgs) 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.
Enables derived classes to provide custom handling when a WebPart control is beginning or ending the process of connecting to other controls.
protected public:
virtual void OnConnectModeChanged(EventArgs ^ e);
protected internal virtual void OnConnectModeChanged (EventArgs e);
abstract member OnConnectModeChanged : EventArgs -> unit
override this.OnConnectModeChanged : EventArgs -> unit
Protected Friend Overridable Sub OnConnectModeChanged (e As EventArgs)
Parameters
Remarks
The method in the WebPart base class contains no implementation.
Notes to Inheritors
A derived control needs to override the OnConnectModeChanged(EventArgs) method. Developers can raise custom events or carry out other actions. The method is called by the WebPartManager control when the BeginWebPartConnecting(WebPart) and EndWebPartConnecting() methods are called to establish connections between controls.