IDataSourceProvider Interface
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.
Defines an interface that a control designer can implement to provide access to a data source.
public interface class IDataSourceProvider
public interface IDataSourceProvider
type IDataSourceProvider = interface
Public Interface IDataSourceProvider
- Derived
Examples
The following code example shows a custom class, named TemplatedListDesigner
, which inherits from the TemplatedControlDesigner class and implements the IDataSourceProvider
interface.
<FileName>databounddesigner.vb</FileName>
<RelevantItems>
<Reference>System.Web.UI.Design.ControlDesigner</Reference>
<Reference>System.Web.UI.Design.TemplatedControlDesigner</Reference>
<Reference>System.Web.UI.Design.IDataSourceProvider</Reference>
</RelevantItems>
Remarks
A class that is able to provide a data source can implement this interface to enable access to its data source by objects that use the IDataSourceProvider interface. This interface is used by the DataFieldConverter and DataMemberConverter classes.
Methods
GetResolvedSelectedDataSource() |
Gets the selected data member from the selected data source. |
GetSelectedDataSource() |
Gets a reference to the selected data source from the data source provider. |