IDataSourceProvider Interface


Defines an interface that a control designer can implement to provide access to a data source.

Namespace:   System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public interface IDataSourceProvider


Gets the selected data member from the selected data source.


Gets a reference to the selected data source from the data source provider.

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.

The following code example shows a custom class, named TemplatedListDesigner, which inherits from the TemplatedControlDesigner class and implements the IDataSourceProvider interface.


.NET Framework
Available since 1.1
Return to top