System.Web.UI.Design.DataSourceConverter.IsValidDataSource Method

Indicates whether the specified component is a valid data source for this converter.

Syntax

protected virtual bool IsValidDataSource (System.ComponentModel.IComponent component)

Parameters

component
The component to check as a valid data source.

Returns

true if component implements IEnumerable or System.ComponentModel.IListSource; otherwise, false.

Remarks

The DataSourceConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext) method uses the DataSourceConverter.IsValidDataSource(System.ComponentModel.IComponent) method to determine the components that are available as standard accessible data sources. For the System.Web.UI.Design.DataSourceConverter class, a valid data source is a component that implements the IEnumerable or System.ComponentModel.IListSource interface.

Requirements

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