BaseDataBoundControlDesigner.ConnectToDataSource 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.
When overridden in a derived class, typically unhooks events from the previous data source, and then attaches new events to the new data source.
protected:
abstract bool ConnectToDataSource();
protected abstract bool ConnectToDataSource ();
abstract member ConnectToDataSource : unit -> bool
Protected MustOverride Function ConnectToDataSource () As Boolean
Returns
true
if a connection to a new data source was performed, typically; false
if the old and new data sources are the same.
Remarks
The implementation of the ConnectToDataSource method typically involves unhooking events from the previous data source, and then attaching new events to the new data source.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for