Επεξεργασία

Κοινή χρήση μέσω


BaseDataBoundControlDesigner.ConnectToDataSource Method

Definition

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