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
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro