DataSourceConverter Class
Assembly: System.Design (in system.design.dll)
DataSourceConverter provides methods that can be used to retrieve a list of data sources accessible to the current design-time component.
This type converter is used by Visual Studio 2005 to provide the values that appear in the list of data sources in the Properties window.
Caution |
|---|
| You should never access a type converter directly. Instead, call the appropriate converter by using TypeDescriptor. For more information, see the examples in the TypeConverter base class. |
For more information about type converters, see the TypeConverter base class and How to: Implement a Type Converter.
// Associates the DataSourceConverter with an object property. public: [TypeConverterAttribute(DataSourceConverter::typeid)] property Object^ dataSource { Object^ get() { return source; } void set( Object^ value ) { source = value; } } private: Object^ source;
// Associates the DataSourceConverter with an object property.
/** @attribute TypeConverterAttribute(DataSourceConverter.class)
*/
/** @property
*/
public Object get_dataSource()
{
return source;
} //get_dataSource
/** @property
*/
public void set_dataSource(Object value)
{
source = value;
} //set_dataSource
private Object source;
- SecurityPermission for operating with unmanaged code. Associated enumeration: UnmanagedCode
System.ComponentModel.TypeConverter
System.Web.UI.Design.DataSourceConverter
System.Web.UI.Design.HierarchicalDataSourceConverter
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Caution