HierarchicalDataSourceConverter.IsValidDataSource(IComponent) Method

Definition

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

C#
protected override bool IsValidDataSource(System.ComponentModel.IComponent component);

Parameters

component
IComponent

The component to check as a valid data source.

Returns

true if component implements IHierarchicalEnumerable; otherwise, false.

Remarks

The GetStandardValues method uses the IsValidDataSource method to determine which components are available as standard accessible data sources. For the HierarchicalDataSourceConverter class, a valid data source is a component that implements the IHierarchicalEnumerable interface.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also