次の方法で共有


DataColumn.MaxLength プロパティ

テキスト列の最大長を取得または設定します。

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 プロパティが無視されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

DataColumn クラス | DataColumn メンバ | System.Data 名前空間