DataColumn.MaxLength 속성

정의

텍스트 열의 최대 길이를 가져오거나 설정합니다.

public:
 property int MaxLength { int get(); void set(int value); };
public int MaxLength { get; set; }
[System.Data.DataSysDescription("DataColumnMaxLengthDescr")]
public int MaxLength { get; set; }
member this.MaxLength : int with get, set
[<System.Data.DataSysDescription("DataColumnMaxLengthDescr")>]
member this.MaxLength : int with get, set
Public Property MaxLength As Integer

속성 값

열의 최대 길이(문자 수)입니다. 열에 최대 길이가 없으면 값은 -1(기본값)입니다.

특성

설명

속성은 MaxLength 텍스트가 아닌 열에 대해 무시됩니다. ArgumentException 문자열이 아닌 열에 할당 MaxLength 하면 예외가 발생합니다.

적용 대상

추가 정보