System.Web.UI.Design.HierarchicalDataSourceConverter.IsValidDataSource Method

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

Syntax

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

Parameters

component
The component to check as a valid data source.

Returns

true if component implements System.Web.UI.IHierarchicalEnumerable; otherwise, false.

Remarks

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

Requirements

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