Information
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.

System.Object
   System.ComponentModel.TypeConverter
      System.Web.UI.Design.DataMemberConverter

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

Remarks

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.

Example

[Visual Basic] 
' Associates the DataMemberConverter with a string property.   
<TypeConverterAttribute(GetType(DataMemberConverter))>  _
Public Property dataMember() As String
   Get
      Return member
   End Get
   Set
      member = value
   End Set
End Property
Private member As String

[C#] 
// Associates the DataMemberConverter with a string property.
[TypeConverterAttribute(typeof(DataMemberConverter))]
public string dataMember
{
    get
    {
        return member;
    }
    set
    {
        member = value;
    }
}
private string member;

[C++] 
// Associates the DataMemberConverter with a String* property.
public:
[TypeConverterAttribute(__typeof(DataMemberConverter))]
__property String* get_dataMember() {
   return member;
}
__property void set_dataMember(String* value) {
   member = value;
}

private:
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.

Requirements

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

Show:
© 2014 Microsoft