DataSourceIDConverter.IsValidDataSource(IComponent) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the specified component is a valid data source.
protected:
virtual bool IsValidDataSource(System::ComponentModel::IComponent ^ component);
protected virtual bool IsValidDataSource(System.ComponentModel.IComponent component);
abstract member IsValidDataSource : System.ComponentModel.IComponent -> bool
override this.IsValidDataSource : System.ComponentModel.IComponent -> bool
Protected Overridable Function IsValidDataSource (component As IComponent) As Boolean
- component
- IComponent
An object that implements the IComponent interface.
true
if component
is a valid data source; otherwise, false
.
The IsValidDataSource method considers the component
parameter to be a valid data source if it implements the IDataSource interface.
The IsValidDataSource(IComponent) method should be overridden by controls that need to further investigate a given component to decide whether it should be returned in the list of standard values. For example, if a control works with only XmlDataSource data sources, IsValidDataSource(IComponent) should return true
only for those components that are XmlDataSource objects.
Продукт | Версії |
---|---|
.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 |
Відгук про .NET
.NET – це проект із відкритим кодом. Виберіть посилання, щоб надати відгук: