Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckMaxLength() [2/2]

void System.Data.DataColumn.CheckMaxLength ( DataRow dr)
inlinepackage

Definition at line 1263 of file DataColumn.cs.

1264 {
1265 if (0 <= _maxLength && _maxLength < GetStringLength(dr.GetDefaultRecord()))
1266 {
1267 throw ExceptionBuilder.LongerThanMaxLength(this);
1268 }
1269 }
int GetStringLength(int record)

References System.Data.DataColumn._maxLength, System.Data.DataColumn.GetStringLength(), and System.Data.ExceptionBuilder.LongerThanMaxLength().