DataColumn.MaxLength 属性  [Visual Basic]请参见
DataColumn 类 | DataColumn 成员 | System.Data 命名空间 
要求
平台: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
语言
C#C++JScriptVisual Basic全部显示
获取或设置文本列的最大长度。[Visual Basic]
Public Property MaxLength As Integer
[C#]
public int MaxLength {get; set;}
[C++]
public: __property int get_MaxLength();
public: __property void set_MaxLength(int);
[JScript]
public function get MaxLength() : int;
public function set MaxLength(int);
属性值
列的最大长度(以字符数表示)。如果列没有最大长度,该值为 -1(默认值)。备注
对于非文本列,则忽略 MaxLength 属性。MaxLength不是列的长度!!!