Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
public interface IDataSourceProvider
public interface IDataSourceProvider
Not applicable.

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.

<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>

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft