Export (0) Print
Expand All

StringConverter Class

Provides a type converter to convert string objects to and from other representations.

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

System.Object
   System.ComponentModel.TypeConverter
      System.ComponentModel.StringConverter
         System.Web.UI.WebControls.TargetConverter
         System.Web.UI.WebControls.ValidatedControlConverter

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

This converter can only convert to a string. It works as a pass through for other converters that want to convert an object to a string.

For more information about type converters, see the TypeConverter base class and Implementing a Type Converter.

Note   You should never create an instance of StringConverter. Instead, call the GetConverter method of TypeDescriptor. For more information, see the examples in the TypeConverter base class.

Requirements

Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

StringConverter Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft