DesignTimeData::GetSelectedDataSource Method (IComponent^, String^, String^)
.NET Framework (current version)
Gets a data source selected by name in the design host, represented by the specified component's site property and identified by the specified data-source name and member name.
Assembly: System.Design (in System.Design.dll)
public: static IEnumerable^ GetSelectedDataSource( IComponent^ component, String^ dataSource, String^ dataMember )
Parameters
- component
-
Type:
System.ComponentModel::IComponent^
The object implementing IComponent that contains the data sourced property.
- dataSource
-
Type:
System::String^
The data source to retrieve.
- dataMember
-
Type:
System::String^
The data member to retrieve.
Return Value
Type: System.Collections::IEnumerable^An object implementing IEnumerable containing the data member, or null if the data source, member, or component's site could not be accessed.
.NET Framework
Available since 1.1
Available since 1.1
Show: