IDataSourceDesigner Interface
TOC
Collapse the table of content
Expand the table of content

IDataSourceDesigner Interface

 

Defines the basic functionality for a data source designer.

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

public interface IDataSourceDesigner

NameDescription
System_CAPS_pubpropertyCanConfigure

Gets a value that indicates whether the Configure method can be called.

System_CAPS_pubpropertyCanRefreshSchema

Gets a value that indicates whether the RefreshSchema method can be called.

NameDescription
System_CAPS_pubmethodConfigure()

Launches the underlying data source's configuration wizard.

System_CAPS_pubmethodGetView(String)

Gets the DesignerDataSourceView for the specified view.

System_CAPS_pubmethodGetViewNames()

Gets the names of the views in the underlying data source.

System_CAPS_pubmethodRefreshSchema(Boolean)

Refreshes the schema of the underlying data source.

System_CAPS_pubmethodResumeDataSourceEvents()

Resumes raising data source events after calling the SuppressDataSourceEvents method.

System_CAPS_pubmethodSuppressDataSourceEvents()

Suppresses all events raised by a data source until the ResumeDataSourceEvents method is called.

NameDescription
System_CAPS_pubeventDataSourceChanged

Occurs when a data source has changed in a way that affects data-bound controls.

System_CAPS_pubeventSchemaRefreshed

Occurs when the fields or data of the underlying data source have changed.

The IDataSourceDesigner interface defines an interface through which you can implement basic services for a data source designer. A designer is only active at design time, and must be associated with a data source, using a DesignerAttribute, in order to be loaded when a data source of the associated type is created at design time.

The IDataSourceDesigner interface provides methods and properties that you can implement in order to provide custom behavior at design time.

A designer can also use the available design-time services to perform a variety of tasks, including surveying the current design-time environment for components and their properties, reading and setting the values of properties of components, managing the toolbox, managing selected components, or displaying a user interface that can be used to configure values or to apply further processing.

In most cases, implement your custom designer for a data source by deriving it from the DataSourceDesigner class. Data sources whose associated designer does not derive from DataSourceDesigner are displayed in the component tray. The DataSourceDesigner class implements the IDataSourceDesigner interface and provides additional design-time support that may be of use to authors of designers. For more information, see the reference documentation for these classes.

For an overview of creating design components, see Extending Design-Time Support.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft