Gets or sets the maximum length of a text column.
Public Property MaxLength As Integer
Dim instance As DataColumn Dim value As Integer value = instance.MaxLength instance.MaxLength = value
public int MaxLength { get; set; }
public: property int MaxLength { int get (); void set (int value); }
public function get MaxLength () : int public function set MaxLength (value : int)
The MaxLength property is ignored for non-text columns.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune