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.

DataMemberConverter Class

Provides a type converter that can retrieve a list of data members from the current component's selected data source.

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


[Visual Basic]
Public Class DataMemberConverter
   Inherits TypeConverter
public class DataMemberConverter : TypeConverter
public __gc class DataMemberConverter : public TypeConverter
public class DataMemberConverter 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.


DataMemberConverter provides methods that can retrieve a list of data members from the current data source of a design-time component.

This type converter is used by Visual Studio .NET to provide the values that appear in the list of data members 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 DataMemberConverter with a string property.   
<TypeConverterAttribute(GetType(DataMemberConverter))>  _
Public Property dataMember() As String
      Return member
   End Get
      member = value
   End Set
End Property
Private member As String

// Associates the DataMemberConverter with a string property.
public string dataMember
        return member;
        member = value;
private string member;

// Associates the DataMemberConverter with a String* property.
__property String* get_dataMember() {
   return member;
__property void set_dataMember(String* value) {
   member = value;

String*  member;

[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

DataMemberConverter Members | System.Web.UI.Design Namespace

© 2018 Microsoft