Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataSourceConverter Class

Provides a type converter that can retrieve a list of data sources accessible to the current component.

For a list of all members of this type, see DataSourceConverter Members.


[Visual Basic]
Public Class DataSourceConverter
   Inherits TypeConverter
public class DataSourceConverter : TypeConverter
public __gc class DataSourceConverter : public TypeConverter
public class DataSourceConverter extends TypeConverter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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 .NET 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 Implementing a Type Converter.


[Visual Basic] 
' Associates the DataSourceConverter with an object property.   
<TypeConverterAttribute(GetType(DataSourceConverter))>  _
Public Property dataSource() As Object
      Return [source]
   End Get
      [source] = value
   End Set
End Property
Private [source] As Object

// Associates the DataSourceConverter with an object property.
public object dataSource
        return source;
        source = value;
private object source;

// Associates the DataSourceConverter with an Object* property.
__property Object* get_dataSource() {
   return source;
__property void set_dataSource(Object* value) {
   source = value;

Object*  source;

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.


Namespace: System.Web.UI.Design

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Design (in System.Design.dll)

See Also

DataSourceConverter Members | System.Web.UI.Design Namespace

© 2017 Microsoft